各项基本工作做好之后,启动服务器发现报::
Caused by: java.lang.ClassNotFoundException: org.hibernate.cache.CacheProvider
已经换成了org.hibernate.cache.spi.RegionFactory
CacheProvider从hibernate 3.3的时候就不建议使用了,这次只不过是在4.0里面删掉了。
在hibernate4中,需要修改你的AnnotationSessionFactoryBean为:
org.springframework.orm.hibernate4.LocalSessionFactoryBean