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 + servlet: + multipart: + max-file-size: 20MB + web: + resources: + static-locations: classpath:/static/,file:static/ + mvc: + pathmatch: + matching-strategy: ant_path_matcher -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: 阿里云短信测试 +## 日志 +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