增加访问nacos的功能

This commit is contained in:
2025-07-02 23:29:48 +08:00
parent 61ec58313e
commit 822361b904
3 changed files with 20 additions and 9 deletions

View File

@ -17,7 +17,11 @@ spring:
cloud:
nacos:
discovery:
server-addr: localhost:8848 # Nacos 地址
server-addr: 115.190.8.52:8848 # Nacos 地址
group: DEFAULT_GROUP
metadata:
version: 1.0.0
env: dev
datasource:
url: jdbc:mysql://115.190.8.52:3306/sczx?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
@ -68,4 +72,3 @@ springdoc:
url: /v3/api-docs
path: /doc.html
packages-to-scan: com.sczx.app.controller # 替换为你的 controller 包路径
debug: true