Procházet zdrojové kódy

构建 jar 包时根据环境设置 thymeleaf cache 是否启用

reghao před 2 roky
rodič
revize
b5e3b2ac2f

+ 2 - 0
manager/src/main/resources/application-dev.yml

@@ -1,4 +1,6 @@
 spring:
+  thymeleaf:
+    cache: false
   datasource:
     url: jdbc:mysql://localhost/reghao_atest_rdb?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8
     username: dev

+ 2 - 0
manager/src/main/resources/application-test.yml

@@ -1,4 +1,6 @@
 spring:
+  thymeleaf:
+    cache: false
   datasource:
     url: jdbc:mysql://192.168.0.212:3306/reghao_devops_tdb?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8
     username: test

+ 1 - 2
manager/src/main/resources/application.yml

@@ -44,5 +44,4 @@ spring:
     mode: HTML
     encoding: utf-8
     servlet:
-      content-type: text/html
-    cache: false
+      content-type: text/html