部署.war包到tomcat,启动tomcat报错

13-Feb-2021 12:47:54.261 警告 [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [SVN_BgiCancerDataCenter] appears to have started a thread named [Druid-ConnectionPool-Create-1354457408] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
sun.misc.Unsafe.park(Native Method)
java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:1590)
13-Feb-2021 12:47:54.263 警告 [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [SVN_BgiCancerDataCenter] appears to have started a thread named [Druid-ConnectionPool-Destory-1354457408] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Thread.sleep(Native Method)
com.alibaba.druid.pool.DruidDataSource$DestroyConnectionThread.run(DruidDataSource.java:1685

 

 

解决方式:数据库连接不上(连接的是非本地数据库),修改jdbc.properties  文件

上一篇:Dapr + .NET Core实战(十一)单机Dapr集群


下一篇:Druid出现DruidDataSource - recyle error - recyle error java.lang.InterruptedException: null异常排查与解决