This commit is contained in:
Administrator
2024-05-10 22:38:15 +08:00
parent af5604e3dc
commit 796f85e334
3 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ spring:
cloud: cloud:
nacos: nacos:
discovery: discovery:
server-addr: ${NACOS_HOST}:${NACOS_PORT:8848} server-addr: nacos:8848
gateway: gateway:
routes: routes:
- id: demo-one - id: demo-one

View File

@@ -4,7 +4,7 @@ server:
spring: spring:
datasource: datasource:
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${MYSQL_HOST}:3306/springboot-vue?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8 url: jdbc:mysql://mysql:3306/springboot-vue?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8
username: root username: root
password: 123456 password: 123456
@@ -15,5 +15,5 @@ spring:
cloud: cloud:
nacos: nacos:
discovery: discovery:
server-addr: ${NACOS_HOST}:${NACOS_PORT:8848} server-addr: nacos:8848