部署.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 文件
标签:named,catalina,java,tomcat,thread,报错,DruidDataSource,Feb,包到 来源: https://www.cnblogs.com/xiaochen-Cao/p/14400006.html