0 0

ibatis的ehcache缓存配置问题0

别名配置:

<typeAlias alias="EHCACHE"  type="***.EhCacheController"  />

cache配置:

<cacheModel id="findObj1" type="EHCACHE">

        <property name="configLocation" value="/ehcache.xml" />

</cacheModel>

<cacheModel id="findObj2" type="EHCACHE">

<property name="configLocation" value="/ehcache.xml" />

</cacheModel>

 

这样运行的结果是,两个cacheModel加载了两遍ehcache.xml,

ibatis加ehcache缓存只能通过type指定吗?能不能通过spring用配置文件注入一个统一的CacheManager?

 

2013年1月23日 13:45
目前还没有答案

相关推荐

Global site tag (gtag.js) - Google Analytics