修改数据库

This commit is contained in:
童丽然 2025-01-09 18:19:52 +08:00
parent da663fff45
commit 27737c0cb9
2 changed files with 9 additions and 5 deletions

View File

@ -6,9 +6,13 @@ spring:
druid:
# 主库数据源
master:
url: jdbc:mysql://182.40.196.154:3306/wumei2.4-test?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: wumei2.4-test
password: JyRiZbFSZZiJBrSa
#url: jdbc:mysql://182.40.196.154:3306/wumei2.4-test?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
#username: wumei2.4-test
#password: JyRiZbFSZZiJBrSa
url: jdbc:mysql://w.hanzhenyun.com:3306/wumei2.4?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: wumei2.4
password: rtB8EhbRRYSGyxHw
# 从库数据源
slave:
enabled: false # 从数据源开关/默认关闭

View File

@ -62,8 +62,8 @@ server:
spring:
# 环境配置dev=开发环境prod=生产环境
profiles:
# active: dev # 环境配置dev=开发环境prod=生产环境
active: prod # 环境配置dev=开发环境prod=生产环境
active: dev # 环境配置dev=开发环境prod=生产环境
#active: prod # 环境配置dev=开发环境prod=生产环境
# 资源信息
messages:
# 国际化资源文件路径