u010317990
xuqiangxing1991
2015-03-16 07:56

tomcat日志调到debug,不报错但一直循环

  • 日志

springmvc + spring + mybatis

tomcat日志调到debug,不报错但一直循环,如下:、
Creating shared instance of singleton bean 'trendsOperatorMapper'
Creating instance of bean 'trendsOperatorMapper'
Eagerly caching bean 'trendsOperatorMapper' to allow for resolving potential circular references
Processing injected method of bean 'trendsOperatorMapper': AutowiredMethodElement for public final void org.mybatis.spring.support.SqlSessionDaoSupport.setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate)
Processing injected method of bean 'trendsOperatorMapper': AutowiredMethodElement for public final void org.mybatis.spring.support.SqlSessionDaoSupport.setSqlSessionFactory(org.apache.ibatis.session.SqlSessionFactory)
Returning eagerly cached instance of singleton bean 'trendsOperatorMapper' that is not fully initialized yet - a consequence of a circular reference
Creating shared instance of singleton bean 'sqlSessionFactory'
Creating instance of bean 'sqlSessionFactory'
Eagerly caching bean 'sqlSessionFactory' to allow for resolving potential circular references
Creating shared instance of singleton bean 'dataSource'
Creating instance of bean 'dataSource'
Eagerly caching bean 'dataSource' to allow for resolving potential circular references
Creating shared instance of singleton bean 'dataSource_model1'
Creating instance of bean 'dataSource_model1'
Ignoring bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'trendsOperatorMapper': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public final void org.mybatis.spring.support.SqlSessionDaoSupport.setSqlSessionFactory(org.apache.ibatis.session.SqlSessionFactory); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in URL [jar:file:/data/webserver/webroot_meng/WebRoot/WEB-INF/lib/DaguuCenterServiceV2-1.0-SNAPSHOT.jar!/spring/applicationContext-base.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in URL [jar:file:/data/webserver/webroot_meng/WebRoot/WEB-INF/lib/DaguuCenterServiceV2-1.0-SNAPSHOT.jar!/spring/applicationContext-base.xml]: Cannot resolve reference to bean 'dataSource_model1' while setting bean property 'targetDataSources' with key [TypedStringValue: value [model1], target type [class java.lang.String]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource_model1' defined in URL [jar:file:/data/webserver/webroot_meng/WebRoot/WEB-INF/lib/DaguuCenterServiceV2-1.0-SNAPSHOT.jar!/spring/applicationContext-base.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.mchange.v2.c3p0.ComboPooledDataSource]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.mchange.v2.c3p0.impl.C3P0Defaults
Creating shared instance of singleton bean 'sqlSessionFactory'
Creating instance of bean 'sqlSessionFactory'
Eagerly caching bean 'sqlSessionFactory' to allow for resolving potential circular references

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答