org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class [org.hibernate.cfg.AnnotationConfiguration]: Constructor threw exception; nested exception is java.lang.NoSuchFieldError: INSTANCE
- hibernate3.jar,里面已经包含annotations相关包,与老版本冲突。
而项目中重复引用了 hibernate-annotations.jar 和 hibernate-commons-annotations.jar 删除后重新部署可。
版权声明:本文为sunshine_love原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。