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:
nacos:
discovery:
server-addr: ${NACOS_HOST}:${NACOS_PORT:8848}
server-addr: nacos:8848
gateway:
routes:
- id: demo-one

View File

@@ -4,7 +4,7 @@ server:
spring:
datasource:
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
password: 123456
@@ -15,5 +15,5 @@ spring:
cloud:
nacos:
discovery:
server-addr: ${NACOS_HOST}:${NACOS_PORT:8848}
server-addr: nacos:8848