idea 用run启动 可以运行 用debug启动 就死循环
idea 用run启动 可以运行 用debug启动 就死循环, 是jar包冲突还是环境问题,别的同事可以运行,我把idea生成的war包 放到tomcat可以运行
2018-02-24 10:38:06.279 [RMI TCP Connection(3)-127.0.0.1] WARN o.s.b.factory.support.DefaultListableBeanFactory - Bean creation exception on FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'WXUserExtMapper' defined in URL [jar:file:/D:/work3/新建文件夹/calf-java/finance-api/target/finance-api/WEB-INF/lib/finance-repository-1.0.0-SNAPSHOT.jar!/com/jc/mapper/wechat/ext/WXUserExtMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': : Error creating bean with name 'sqlSessionFactory' defined in URL [jar:file:/D:/work3/新建文件夹/calf-java/finance-api/target/finance-api/WEB-INF/lib/finance-repository-1.0.0-SNAPSHOT.jar!/applicationContext-repository.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:/D:/work3/新建文件夹/calf-java/finance-api/target/finance-api/WEB-INF/lib/finance-repository-1.0.0-SNAPSHOT.jar!/applicationContext-repository.xml]: Cannot resolve reference to bean 'defaultDataSource' while setting bean property 'targetDataSources' with key [TypedStringValue: value [default], target type [class java.lang.String]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultDataSource' defined in URL [jar:file:/D:/work3/新建文件夹/calf-java/finance-api/target/finance-api/WEB-INF/lib/finance-repository-1.0.0-SNAPSHOT.jar!/applicationContext-repository.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.mchange.v2.c3p0.ComboPooledDataSource]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.mchange.v2.c3p0.impl.C3P0Defaults; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in URL [jar:file:/D:/work3/新建文件夹/calf-java/finance-api/target/finance-api/WEB-INF/lib/finance-repository-1.0.0-SNAPSHOT.jar!/applicationContext-repository.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:/D:/work3/新建文件夹/calf-java/finance-api/target/finance-api/WEB-INF/lib/finance-repository-1.0.0-SNAPSHOT.jar!/applicationContext-repository.xml]: Cannot resolve reference to bean 'defaultDataSource' while setting bean property 'targetDataSources' with key [TypedStringValue: value [default], target type [class java.lang.String]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultDataSource' defined in URL [jar:file:/D:/work3/新建文件夹/calf-java/finance-api/target/finance-api/WEB-INF/lib/finance-repository-1.0.0-SNAPSHOT.jar!/applicationContext-repository.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.mchange.v2.c3p0.ComboPooledDataSource]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.mchange.v2.c3p0.impl.C3P0Defaults