From 903575472e8e17c33a6f19bb2ba380dbafcc3f98 Mon Sep 17 00:00:00 2001 From: hd Date: Fri, 15 May 2026 15:39:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-dev.yml | 10 +++++----- src/main/resources/application-pro.yml | 18 +++++++++++++----- src/main/resources/application-test.yml | 18 +++++++++++++----- src/main/resources/application.yml | 2 +- 4 files changed, 32 insertions(+), 16 deletions(-) diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index e074cd2..e577b2d 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -11,15 +11,15 @@ spring: matching-strategy: ant_path_matcher datasource: driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://localhost:3306/registration?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true + url: jdbc:mysql://ngsk.tech:3307/registration?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true username: root - password: 123456 + password: ngsk0809 schema: classpath:data.sql initialization-mode: always redis: - host: localhost - port: 6379 - password: + host: ngsk.tech + port: 6389 + password: ngsk0809 database: 0 lettuce: pool: diff --git a/src/main/resources/application-pro.yml b/src/main/resources/application-pro.yml index 24118a3..e577b2d 100644 --- a/src/main/resources/application-pro.yml +++ b/src/main/resources/application-pro.yml @@ -11,15 +11,15 @@ spring: matching-strategy: ant_path_matcher datasource: driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://localhost:3306/registration?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true + url: jdbc:mysql://ngsk.tech:3307/registration?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true username: root - password: 123456 + password: ngsk0809 schema: classpath:data.sql initialization-mode: always redis: - host: localhost - port: 6379 - password: + host: ngsk.tech + port: 6389 + password: ngsk0809 database: 0 lettuce: pool: @@ -44,3 +44,11 @@ knife4j: enable: true setting: language: zh_cn + +# 阿里云短信配置 +aliyun: + sms: + access-key-id: LTAI5t7peh76HpuVGhpXabPb + access-key-secret: Y119TqVZeaU7LcYRgbIHLpmscteQnw + sign-name: 培训报名成功模板 + template-code: SMS_506365455 diff --git a/src/main/resources/application-test.yml b/src/main/resources/application-test.yml index 24118a3..e577b2d 100644 --- a/src/main/resources/application-test.yml +++ b/src/main/resources/application-test.yml @@ -11,15 +11,15 @@ spring: matching-strategy: ant_path_matcher datasource: driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://localhost:3306/registration?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true + url: jdbc:mysql://ngsk.tech:3307/registration?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true username: root - password: 123456 + password: ngsk0809 schema: classpath:data.sql initialization-mode: always redis: - host: localhost - port: 6379 - password: + host: ngsk.tech + port: 6389 + password: ngsk0809 database: 0 lettuce: pool: @@ -44,3 +44,11 @@ knife4j: enable: true setting: language: zh_cn + +# 阿里云短信配置 +aliyun: + sms: + access-key-id: LTAI5t7peh76HpuVGhpXabPb + access-key-secret: Y119TqVZeaU7LcYRgbIHLpmscteQnw + sign-name: 培训报名成功模板 + template-code: SMS_506365455 diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index caf4dfc..fc3033b 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,3 +1,3 @@ spring: profiles: - active: dev \ No newline at end of file + active: pro \ No newline at end of file