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 删除后重新部署可。