错误如下:
Error creating bean with name 'mySessionFactory' defined in class path resource [config/applicationContext.xml]: Initialization of bean failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySessionFactory' defined in class path resource [config/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.UnsupportedClassVersionError: org/hibernate/cfg/SecondPass (Unsupported major.minor
version 49.0)
原因:
Spring的jar包有问题。