Kaynağa Gözat

不缓存 thymeleaf 模板, 这样在开发时修改模板后再 build 会自动更新到最新的数据

reghao 2 yıl önce
ebeveyn
işleme
e34398db16

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

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

+ 15 - 0
manager/src/main/resources/application-dev1.yml

@@ -0,0 +1,15 @@
+spring:
+  datasource:
+    url: jdbc:mysql://localhost:3306/reghao_devops_rdb?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8
+    username: dev
+    password: Dev@123456
+  data:
+    mongodb:
+      host: localhost
+      database: "reghao_log_rdb"
+      authentication-database: admin
+      username: dev
+      password: Dev@123456
+webhook:
+  name: ding-cicd
+  url: https://oapi.dingtalk.com/robot/send?access_token=2ede844511f6a12a0429a25585222ef1f0eb99094421ea4b3155f17fda0f4662

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

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

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

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