From c3bfa381bfec2372c91f8c17f6f8cbf48fbd284d Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期五, 30 五月 2025 14:11:48 +0800 Subject: [PATCH] 修改配置文件 --- guns-admin/src/main/resources/application.yml | 32 +++++++++++++------------------- 1 files changed, 13 insertions(+), 19 deletions(-) diff --git a/guns-admin/src/main/resources/application.yml b/guns-admin/src/main/resources/application.yml index f16e79d..78efb2e 100644 --- a/guns-admin/src/main/resources/application.yml +++ b/guns-admin/src/main/resources/application.yml @@ -12,9 +12,9 @@ spring: redis: database: 0 - host: localhost + host: 10.25.14.40 port: 6379 - password: 123456 + password: 34b7b13ce8a711e4:chengshI2014 --- @@ -41,32 +41,26 @@ typeAliasesPackage: com.stylefeng.guns.modular configuration: log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl -# 日志配置 -logging: - level: - com.stylefeng: debug - org.springframework: warn --- -spring: - datasource: - url: jdbc:mysql://127.0.0.1:3306/vehicle_inspection?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=Asia/Shanghai - username: root - password: 123456 - db-name: vehicle_inspection #用来搜集数据库的所有表 - filters: wall,mergeStat - -#线上环境 #spring: # datasource: -# url: jdbc:mysql://192.168.110.85:3306/vehicle_inspection?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=Asia/Shanghai +# url: jdbc:mysql://127.0.0.1:3306/vehicle_inspection?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=Asia/Shanghai # username: root # password: 123456 -# driver-class-name: com.mysql.cj.jdbc.Driver -# db-name: guns #用来搜集数据库的所有表 +# db-name: vehicle_inspection #用来搜集数据库的所有表 # filters: wall,mergeStat +#线上环境 +spring: + datasource: + url: jdbc:mysql://rm-m5e57gbu0gdv901ub.mysql.rds.aliyuncs.com:3306/vehicle_inspection?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=Asia/Shanghai + username: vehicleInspection + password: SYzt1953123456 + db-name: guns #用来搜集数据库的所有表 + filters: wall,mergeStat + #多数据源情况的配置 #guns: -- Gitblit v1.7.1