SSH配置启动后Could not instantiate bean class [org.hibernate.cfg.AnnotationConfiguration
Caused by: org.springframework.beans.BeanInstantiationException:
?
Could not instantiate bean class [org.hibernate.cfg.AnnotationConfiguration]: Constructor threw exception; nested exception is java.lang.NoSuchFieldError: INSTANCE
?
網(wǎng)上查找了原因,原來要到tomcat里的webapps里刪掉項目的hibernate-annotations.jar;hibernate-commons-annotations.jar;保留hibernate3.jar就行了。
?
但是由于在user libraries去掉沖突的jar之后,重啟服務(wù)還是報一樣的錯誤,這個因為Tomcat Server的webapps目錄下的工程里的lib目錄下的仍存在沖突的jar文件,所以導(dǎo)致重啟之后還是報一樣的錯誤,
解決辦法:Tomcat Server刪除部署,重新部署一遍就沒問題了
轉(zhuǎn)載于:https://www.cnblogs.com/nuosiboy/p/4727540.html
總結(jié)
以上是生活随笔為你收集整理的SSH配置启动后Could not instantiate bean class [org.hibernate.cfg.AnnotationConfiguration的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 天书奇谈为什么不火了
- 下一篇: 米家app(app安卓版)