The web application [ROOT] appears to have started a thread named [Abandoned connection cleanup thr

时间:2024-03-15 13:00:49

2019-05-06 11:26:40.552 WARN 29879 — [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘balanceController’: Unsatisfied dependency expressed through field ‘balanceService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘balanceServiceImpl’: Unsatisfied dependency expressed through field ‘repayUserBalanceMapper’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘repayUserBalanceMapper’ defined in URL [jar:file:/usr/local/xiaocaimi/xiaocaimi-repayment.jar!/BOOT-INF/lib/xiaocaimi-repayment-dao-1.0.0-SNAPSHOT.jar!/com/xiaocaimi/repayment/dao/RepayUserBalanceMapper.class]: Cannot resolve reference to bean ‘sqlSessionFactory’ while setting bean property ‘sqlSessionFactory’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sqlSessionFactory’ defined in class path resource [com/xiaocaimi/repayment/config/MybatisConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method ‘sqlSessionFactory’ threw exception; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: ‘class path resource [mapper/RepayVipMapper.xml]’; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias ‘RepayVip’. Cause: java.lang.ClassNotFoundException: Cannot find class: RepayVip
2019-05-06 11:26:40.554 INFO 29879 — [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
2019-05-06 11:26:40.558 INFO 29879 — [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2019-05-06 11:26:40.564 WARN 29879 — [ost-startStop-1] o.a.c.loader.WebappClassLoaderBase : The web application [ROOT] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:144)
com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:43)

The web application [ROOT] appears to have started a thread named [Abandoned connection cleanup thr

原因在于RepayVip没有加前缀
The web application [ROOT] appears to have started a thread named [Abandoned connection cleanup thr