Eagerly caching bean '' to allow for resolving potential circular references
来源:互联网 发布:plc编程介绍 编辑:程序博客网 时间:2024/06/05 19:33
tomcat启动时卡在:
一般这样的问题是两个原因:
1. 数据库连接不上;
2. mapper.xml 中有错误,比如单词拼写错误;
这个问题不是,采取的方法是 把项目的日志级别调整为debug模式,查看详细打印信息:
DEBUG o.s.b.factory.support.DefaultListableBeanFactory - Ignoring bean creation exception on FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean
with name 'crashMetaLogDAO' defined in URL [jar:file:/D:/dev_software/workplace/gitWorkplace/appupgrade/app-upgrade-admin/target/app-upgrade-admin/WEB-INF/lib/app-upgrade-module-1.0-SNAPSHOT.jar!
/com/bbkmobile/iqoo/appupgrade/statistic/crashdata/dao/CrashMetaLogDAO.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': :
No qualifying bean of type [org.apache.ibatis.session.SqlSessionFactory] is defined: expected single matching bean but found 2: sqlSessionFactory,statisticSqlSessionFactory;
nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [org.apache.ibatis.session.SqlSessionFactory] is defined:
expected single matching bean but found 2: sqlSessionFactory,statisticSqlSessionFactory
DEBUG o.s.b.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'sqlSessionFactory'
DEBUG o.s.b.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'statisticSqlSessionFactory'
DEBUG o.s.b.factory.support.DefaultListableBeanFactory - Ignoring bean creation exception on FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean
with name 'userDAO' defined in URL [jar:file:/D:/dev_software/workplace/gitWorkplace/appupgrade/app-upgrade-admin/target/app-upgrade-admin/WEB-INF/lib/app-upgrade-core-1.0-SNAPSHOT.jar!
/com/bbkmobile/iqoo/appupgrade/core/user/dao/UserDAO.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': :
No qualifying bean of type [org.apache.ibatis.session.SqlSessionFactory] is defined: expected single matching bean but found 2: sqlSessionFactory,statisticSqlSessionFactory;
nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [org.apache.ibatis.session.SqlSessionFactory] is defined:
expected single matching bean but found 2: sqlSessionFactory,statisticSqlSessionFactory
DEBUG o.s.b.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'crashMetaLogDAO'
DEBUG o.s.b.factory.support.DefaultListableBeanFactory - Creating instance of bean 'crashMetaLogDAO'
DEBUG o.s.b.factory.support.DefaultListableBeanFactory - Eagerly caching bean 'crashMetaLogDAO' to allow for resolving potential circular references
2017-02-12 20:48:54.040 DEBUG o.s.b.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'userDAO'
2017-02-12 20:48:54.040 DEBUG o.s.b.factory.support.DefaultListableBeanFactory - Creating instance of bean 'userDAO'
2017-02-12 20:48:54.040 DEBUG o.s.b.factory.support.DefaultListableBeanFactory - Eagerly caching bean 'userDAO' to allow for resolving potential circular references
statistic-spring-mybatis.xml
<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer"> <property name="basePackage" value="xxx.xxx.xxx.statistic.*.dao"/></bean>
spring-mybatis.xml
<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer"> <property name="basePackage" value="xxx.xxx.xxx.x.core.*.dao"/></bean>
两个spring-mybatis.xml 的MapperScannerConfiguer中 都没有指定sqlSessionFactory。
- Eagerly caching bean '' to allow for resolving potential circular references
- How To Use JavaSoft References For Caching @ JDJ
- Resolving Binary References in MSBuild
- For Potential Students
- var_export does not handle circular references
- Listener Hanging - Information to Get For Resolving or Troubleshooting (Doc ID 230156.1)
- Allow Debugging for SharePoint
- php出现var_export does not handle circular references
- References to const
- 南大周志华写的For Potential Students
- (异常)Circular reference involving containing bean
- Converting circular structure to JSON
- allow Subclipse team to receive anonymous usage statistics for this Eclipse instance
- Please allow Subclipse team to receive anonymous usage statistics for this Eclipse intance(info)
- Please allow Subclipse team to receive anonymous usage statistics for this Eclipse intance问题解决方法
- Please allow subclipse team to receive anonymous usage statistics for this eclipse instance
- Please allow Subclipse team to receive anonymous usage statistics for this Eclipse intance(info)
- Please allow Subclipse team to receive anonymous usage statistics for this Eclipse intance(info)
- 前端问题——CSS合集
- java中函数使用变长参数
- java导入excel
- Codeforces Round #269 (Div. 2) A,B,C,D
- 信号与系统实用总结
- Eagerly caching bean '' to allow for resolving potential circular references
- android中的ListView控件
- JS闭包
- 506. Relative Ranks
- 安卓-通知栏
- Altium Designer画元器件封装三种方法
- 转载:BufferedInputStream和BufferedOutputStream用法简介
- luajit笔记---编译成静态库以及FFI绑定宿主程序函数
- Uva11212 Editing a Book【IDA*】【例题7-10】