首页 > 代码库 > Mybatis缓存报错org.apache.ibatis.exceptions.PersistenceException

Mybatis缓存报错org.apache.ibatis.exceptions.PersistenceException

错误信息如下:


org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: org.apache.ibatis.cache.CacheException: Error deserializing object. Cause: java.lang.ClassNotFoundException: com.kytsoft.model.Adminlink ### Cause: org.apache.ibatis.cache.CacheException: Error deserializing object. Cause: java.lang.ClassNotFoundException: com.kytsoft.model.Adminlink


解决方式:

将jar包从Tomcat的lib中移到项目的WEB-INF\lib中


参考文章:http://code.google.com/p/mybatis/issues/detail?id=243



本文出自 “札小白的博客” 博客,请务必保留此出处http://javaerprimary.blog.51cto.com/6711298/1409338