diff --git a/pom.xml b/pom.xml
index 8575db0c5..eb84e6262 100755
--- a/pom.xml
+++ b/pom.xml
@@ -33,7 +33,6 @@
1.8
0.0.4
1.18.4
- 3.6.3
4.5.0
4.0.1
7.2.18
@@ -121,9 +120,8 @@
- org.ehcache
+ net.sf.ehcache
ehcache
- ${ehcache.version}
diff --git a/src/main/resources/application-dev.yaml b/src/main/resources/application-dev.yaml
index 2a87a110b..cd99d23b0 100755
--- a/src/main/resources/application-dev.yaml
+++ b/src/main/resources/application-dev.yaml
@@ -10,8 +10,6 @@ server:
session:
timeout: 86400s
spring:
- cache:
- type: none
output:
ansi:
enabled: always
@@ -60,6 +58,11 @@ spring:
# 多语言资源文件路径
messages:
basename: i18n/messages
+
+ cache:
+ type: ehcache
+ ehcache:
+ config: classpath:ehcache.xml
logging:
level:
cc.ryanc.halo: DEBUG
diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml
index 24d1e2d5d..a13b6bf37 100755
--- a/src/main/resources/application.yaml
+++ b/src/main/resources/application.yaml
@@ -60,6 +60,11 @@ spring:
# 多语言资源文件路径
messages:
basename: i18n/messages
+
+ cache:
+ type: ehcache
+ ehcache:
+ config: classpath:ehcache.xml
logging:
level:
cc.ryanc.halo: INFO