![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatis
菜鸟的脚印
这个作者很懒,什么都没留下…
展开
-
mybatis缓存机制
mybatis正如大多数持久层框架一样,缓存提供一级缓存和二级缓存。如hibernate先说说mybatis一级缓存用过hibernate的人应该了解,hibernate一级缓存的作用域是session。而session的生命周期很短,所以hibernate的一级缓存生命期也很短。mybatis的一级缓存与hibernate一样,基于PerpetualCache 的 HashMap本地原创 2014-11-27 13:58:28 · 3841 阅读 · 0 评论 -
mybatis-ehcache报错
最近使用mybatis的ehcache二级缓存,遇到一个问题。debug时一直提示CacheKey未序列化,具体异常信息如下:ERROR - Disk Write of -1207623744:1159990473:test.dao.AboutDtoMapper.selectByPrimaryKey:0:2147483647:select * from SYS_AREAINFO whe原创 2014-11-27 15:52:27 · 1832 阅读 · 1 评论