From ee3748c36167e746bd7e922dc5cfa15c7b99d5cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E6=96=87=E8=B1=AA?= <980287353@qq.com> Date: Tue, 7 Feb 2023 08:59:42 +0800 Subject: [PATCH] =?UTF-8?q?perf=EF=BC=9A=E8=B0=83=E6=95=B4=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application-test.yml | 28 +++++++++++++ .../src/main/resources/application.yml | 41 ++++++++----------- .../src/main/resources/application.yml | 21 ---------- 3 files changed, 45 insertions(+), 45 deletions(-) create mode 100644 springboot-ademo/src/main/resources/application-test.yml delete mode 100644 springboot-web/src/main/resources/application.yml diff --git a/springboot-ademo/src/main/resources/application-test.yml b/springboot-ademo/src/main/resources/application-test.yml new file mode 100644 index 0000000..457043a --- /dev/null +++ b/springboot-ademo/src/main/resources/application-test.yml @@ -0,0 +1,28 @@ +## Spring配置 +spring: + + ## 数据库配置 + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://47.96.30.85:3306/com_tiesheng_web?useSSL=false&useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&queryTimeout=5400&allowMultiQueries=true&serverTimezone=GMT%2B8 + username: com_tiesheng_web + password: 4Xo$XheGFc + +platform: + wxmp: + global: + app-id: wxa0343fe519824651 + app-secret: 776f089ba70bcd66455a7c7893f810b9 + +tiesheng: + token: + ignores: + "1111": + id: "1111" + global: + version: 2 + host: http://localhost:8080 + aliyun: + access-key-id: LTAI5tJtbgBCnTY5eS4SmrTf + access-key-secret: JIHqpRUFffCHhXaJEVvWN31WcexWqG + sign-name: 阿里云短信测试 diff --git a/springboot-ademo/src/main/resources/application.yml b/springboot-ademo/src/main/resources/application.yml index 457043a..97747b7 100644 --- a/springboot-ademo/src/main/resources/application.yml +++ b/springboot-ademo/src/main/resources/application.yml @@ -1,28 +1,21 @@ +server: + compression: + enabled: true + ## Spring配置 spring: - ## 数据库配置 - datasource: - driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://47.96.30.85:3306/com_tiesheng_web?useSSL=false&useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&queryTimeout=5400&allowMultiQueries=true&serverTimezone=GMT%2B8 - username: com_tiesheng_web - password: 4Xo$XheGFc - -platform: - wxmp: - global: - app-id: wxa0343fe519824651 - app-secret: 776f089ba70bcd66455a7c7893f810b9 + servlet: + multipart: + max-file-size: 20MB + web: + resources: + static-locations: classpath:/static/,file:static/ + mvc: + pathmatch: + matching-strategy: ant_path_matcher -tiesheng: - token: - ignores: - "1111": - id: "1111" - global: - version: 2 - host: http://localhost:8080 - aliyun: - access-key-id: LTAI5tJtbgBCnTY5eS4SmrTf - access-key-secret: JIHqpRUFffCHhXaJEVvWN31WcexWqG - sign-name: 阿里云短信测试 +## 日志 +logging: + file: + name: logs/tiesheng.log diff --git a/springboot-web/src/main/resources/application.yml b/springboot-web/src/main/resources/application.yml deleted file mode 100644 index 97747b7..0000000 --- a/springboot-web/src/main/resources/application.yml +++ /dev/null @@ -1,21 +0,0 @@ -server: - compression: - enabled: true - -## Spring配置 -spring: - - servlet: - multipart: - max-file-size: 20MB - web: - resources: - static-locations: classpath:/static/,file:static/ - mvc: - pathmatch: - matching-strategy: ant_path_matcher - -## 日志 -logging: - file: - name: logs/tiesheng.log