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
網上查找了原因,原來要到tomcat里的webapps里刪掉項目的hibernate-annotations.jar;hibernate-commons-annotations.jar;保留hibernate3.jar就行了。
但是由於在user libraries去掉沖突的jar之后,重啟服務還是報一樣的錯誤,這個因為Tomcat Server的webapps目錄下的工程里的lib目錄下的仍存在沖突的jar文件,所以導致重啟之后還是報一樣的錯誤,
解決辦法:Tomcat Server刪除部署,重新部署一遍就沒問題了