spring从3.1开始不再提供对hibernate4的Template和DaoSupport的支持。

异常:java.lang.ClassNotFoundException: org.hibernate.cache.CacheProvider

解决方法:

ClassNotFoundException

Cause: using a org.springframework.orm.hibernate3.LocalSessionFactoryBean with spring 3.1.0.xxx, should useorg.springframework.orm.hibernate4.LocalSessionFactoryBean.

Caused by: java.lang.ClassNotFoundException: org.hibernate.cache.CacheProvider

评论关闭
IT源码网

微信公众号号:IT虾米 (左侧二维码扫一扫)欢迎添加!