zoukankan      html  css  js  c++  java
  • A bean with that name has already been defined in class path resource [org/springframework/transaction/annotation/ProxyTransactionManagementConfiguration.class] and overriding is disabled

    2019-12-19 13:26:17.594 WARN  [main] o.s.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext 558 - [TxId :  , SpanId : ] 
    Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.support.BeanDefinitionOverrideException: 
    Invalid bean definition with name 'org.springframework.transaction.config.internalTransactionalEventListenerFactory' defined in null: 
    Cannot register bean definition 
    [Root bean: class [org.springframework.transaction.event.TransactionalEventListenerFactory]; 
    scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] 
    for bean 'org.springframework.transaction.config.internalTransactionalEventListenerFactory': 
    There is already [Root bean: class [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration]; scope=; abstract=false; lazyInit=null; autowireMode=3; dependencyCheck=0; 
    autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=transactionalEventListenerFactory; initMethodName=null; destroyMethodName=(inferred); 
    defined in class path resource [org/springframework/transaction/annotation/ProxyTransactionManagementConfiguration.class]] bound.
    2019-12-19 13:26:17.606 INFO  [main] o.s.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener 136 - [TxId :  , SpanId : ] 
    
    Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
    2019-12-19 13:26:17.609 ERROR [main] org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter 40 - [TxId :  , SpanId : ] 
    
    ***************************
    APPLICATION FAILED TO START
    ***************************
    
    Description:
    
    The bean 'org.springframework.transaction.config.internalTransactionalEventListenerFactory' could not be registered. 
    A bean with that name has already been defined in class path resource [org/springframework/transaction/annotation/ProxyTransactionManagementConfiguration.class] and overriding is disabled.
    
    Action:
    
    Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true
    
    
    Process finished with exit code 1
  • 相关阅读:
    今天开始用 VSU 2010
    Visual Studio 2010 模型设计工具 基本应用
    Asp.Net访问Oracle 数据库 执行SQL语句和调用存储过程
    Enterprise Library 4.1 Security Block 快速使用图文笔记
    解决“System.Data.OracleClient 需要 Oracle 客户端软件 8.1.7 或更高版本。”(图)
    一个Oracle存储过程示例
    Enterprise Library 4.1 Application Settings 快速使用图文笔记
    Oracle 10g for Windows 简体中文版的安装过程
    Oracle 11g for Windows 简体中文版的安装过程
    Oracle 9i 数据库 创建数据库 Net 配置 创建表 SQL查询 创建存储过程 (图)
  • 原文地址:https://www.cnblogs.com/softidea/p/12067326.html
Copyright © 2011-2022 走看看