统一NACOS配置

This commit is contained in:
dengqichen
2025-05-15 13:11:42 +08:00
parent 4732cb276f
commit accc6aee52
8 changed files with 11 additions and 152 deletions
@@ -0,0 +1,2 @@
server:
port: 8080
@@ -1,2 +0,0 @@
#server:
# port: 8080
@@ -9,11 +9,11 @@ spring:
discovery:
group: ${DEPLOY_ENV}
namespace: ${DEPLOY_ENV}
ip: ${LOCAL_CLIENT_IP:} #必须要写:如果不写的话会注册成${LOCAL_CLIENT_IP}
config:
group: ${DEPLOY_ENV}
namespace: ${DEPLOY_ENV}
file-extension: yaml
config:
import:
- optional:nacos:zoe-gateway.yaml?group=DEFAULT_GROUP
- optional:classpath:application.yaml
- optional:nacos:zoe-common.yaml?group=DEFAULT_GROUP