把class文件中的代码,一个一个的拷贝到项目中,有引入了很多jar包,项目终于不报错了,但是启动报错,报错信息:
警告: 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.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:43)
什么mysql数据库啥的,拷贝class代码之前,没报错。找了找方案,找到个网址:
https://www.cnblogs.com/jpfss/p/11828257.html
文中写着:
逐步检查自己的代码:从hoaven分支checkout一个分支(fixbug),然后将自己写的代码一点一点移至fixbug分支。
每移动一次代码,部署一次,若正常启动,继续移动代码;若报出以上错误,停止移动,检查本次移动的代码。
也就说挪过来代码或者jar包有问题,我猜测能不能是jar包的问题,就又down下来一便最新的项目,把所有jar包复制过去,不报错,把domain中的文件复制过去,报错了,一个interface类型的service没有实现类。报错如下:
Description:
Field entityService in XXX.domain.EntityEnsembleService required a bean of type 'XXX.domain.EntityService' that could not be found.
Action:
Consider defining a bean of type 'XXX.domain.EntityService' in your configuration.
总结:以后发生类似问题,按照那个文章中的解决方案。