Kaynağa Gözat

ehcache移到单独项目dao层

shuzheng 9 yıl önce
ebeveyn
işleme
f1a38be9ec

+ 1 - 1
zheng-cms/zheng-cms-web/src/main/resources/test-spring-ehcache.xml → zheng-cms/zheng-cms-dao/src/main/resources/applicationContext-ehcache.xml

@@ -18,7 +18,7 @@
 
 	<!-- cache管理器配置 -->
 	<bean id="cacheManagerFactory" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
-		<property name="configLocation"  value="classpath:test-ehcache.xml"/>
+		<property name="configLocation"  value="classpath:ehcache.xml"/>
 		<property name="shared" value="true" />
 	</bean>
 

+ 1 - 1
zheng-cms/zheng-cms-web/src/main/resources/test-ehcache.xml → zheng-cms/zheng-cms-dao/src/main/resources/ehcache.xml

@@ -13,7 +13,7 @@
         <persistence strategy="localTempSwap"/>
     </defaultCache>
     <cache
-            name="ehcache"
+            name="zheng-cms-ehcache"
             eternal="false"
             timeToIdleSeconds="120"
             timeToLiveSeconds="300"

+ 1 - 1
zheng-cms/zheng-cms-web/src/main/resources/config.properties

@@ -1,2 +1,2 @@
 env=${profile.env}
-ehcache.name=ehcache
+ehcache.name=zheng-cms-ehcache

+ 1 - 11
zheng-pay/zheng-pay-dao/src/main/resources/generatorConfig.xml

@@ -28,17 +28,7 @@
         <plugin type="com.zheng.common.plugin.PaginationPlugin"></plugin>
 
 		<!-- 生成在XML中的<cache>元素 -->
-		<plugin type="org.mybatis.generator.plugins.CachePlugin">
-			<!-- 使用ehcache -->
-			<property name="cache_type" value="org.mybatis.caches.ehcache.LoggingEhcache" />
-			<!-- 内置cache配置 -->
-			<!--
-			<property name="cache_eviction" value="LRU" />
-			<property name="cache_flushInterval" value="60000" />
-			<property name="cache_readOnly" value="true" />
-			<property name="cache_size" value="1024" />
-			-->
-		</plugin>
+		<plugin type="org.mybatis.generator.plugins.CachePlugin"></plugin>
 
 		<!-- Java模型生成equals和hashcode方法 -->
 		<plugin type="org.mybatis.generator.plugins.EqualsHashCodePlugin"></plugin>

+ 1 - 11
zheng-ucenter/zheng-ucenter-dao/src/main/resources/generatorConfig.xml

@@ -28,17 +28,7 @@
         <plugin type="com.zheng.common.plugin.PaginationPlugin"></plugin>
 
 		<!-- 生成在XML中的<cache>元素 -->
-		<plugin type="org.mybatis.generator.plugins.CachePlugin">
-			<!-- 使用ehcache -->
-			<property name="cache_type" value="org.mybatis.caches.ehcache.LoggingEhcache" />
-			<!-- 内置cache配置 -->
-			<!--
-			<property name="cache_eviction" value="LRU" />
-			<property name="cache_flushInterval" value="60000" />
-			<property name="cache_readOnly" value="true" />
-			<property name="cache_size" value="1024" />
-			-->
-		</plugin>
+		<plugin type="org.mybatis.generator.plugins.CachePlugin"></plugin>
 
 		<!-- Java模型生成equals和hashcode方法 -->
 		<plugin type="org.mybatis.generator.plugins.EqualsHashCodePlugin"></plugin>

+ 1 - 11
zheng-upms/zheng-upms-dao/src/main/resources/generatorConfig.xml

@@ -28,17 +28,7 @@
         <plugin type="com.zheng.common.plugin.PaginationPlugin"></plugin>
 
 		<!-- 生成在XML中的<cache>元素 -->
-		<plugin type="org.mybatis.generator.plugins.CachePlugin">
-			<!-- 使用ehcache -->
-			<property name="cache_type" value="org.mybatis.caches.ehcache.LoggingEhcache" />
-			<!-- 内置cache配置 -->
-			<!--
-			<property name="cache_eviction" value="LRU" />
-			<property name="cache_flushInterval" value="60000" />
-			<property name="cache_readOnly" value="true" />
-			<property name="cache_size" value="1024" />
-			-->
-		</plugin>
+		<plugin type="org.mybatis.generator.plugins.CachePlugin"></plugin>
 
 		<!-- Java模型生成equals和hashcode方法 -->
 		<plugin type="org.mybatis.generator.plugins.EqualsHashCodePlugin"></plugin>

+ 1 - 11
zheng-wechat-mp/zheng-wechat-mp-dao/src/main/resources/generatorConfig.xml

@@ -28,17 +28,7 @@
         <plugin type="com.zheng.common.plugin.PaginationPlugin"></plugin>
 
 		<!-- 生成在XML中的<cache>元素 -->
-		<plugin type="org.mybatis.generator.plugins.CachePlugin">
-			<!-- 使用ehcache -->
-			<property name="cache_type" value="org.mybatis.caches.ehcache.LoggingEhcache" />
-			<!-- 内置cache配置 -->
-			<!--
-			<property name="cache_eviction" value="LRU" />
-			<property name="cache_flushInterval" value="60000" />
-			<property name="cache_readOnly" value="true" />
-			<property name="cache_size" value="1024" />
-			-->
-		</plugin>
+		<plugin type="org.mybatis.generator.plugins.CachePlugin"></plugin>
 
 		<!-- Java模型生成equals和hashcode方法 -->
 		<plugin type="org.mybatis.generator.plugins.EqualsHashCodePlugin"></plugin>