引入nacos配置中心

This commit is contained in:
xiongfeng
2024-01-24 16:40:31 +08:00
parent c118c3fed8
commit cf4c78766b
4 changed files with 69 additions and 67 deletions

View File

@@ -15,7 +15,7 @@ spring:
password: ${MYSQL_PWD}
driver-class-name: com.mysql.cj.jdbc.Driver
slave:
url: jdbc:mysql://120.48.109.209:3306/xf-boot-base?useUnicode=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=Asia/Shanghai
url: jdbc:mysql://${SERVER_ADDRESS}:3306/xf-boot-base?useUnicode=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=Asia/Shanghai
username: ${MYSQL_NAME}
password: ${MYSQL_PWD}
driver-class-name: com.mysql.cj.jdbc.Driver