spring: cloud: nacos: discovery: # 解决部署在不同服务器访问不到的问题,需暴露外网ip ip: 81.69.47.31 # 部署在不同服务器上的指定端口 port: 9102 # 服务注册地址 server-addr: http://175.24.122.142:8848 # 命名空间地址 namespace: abfe8ee6-161b-4f8f-b61f-51663bbfa4f9 # 命名空间分组 group: grey config: # 配置中心地址 server-addr: http://175.24.122.142:8848 # 配置文件格式 file-extension: yml # 命名空间地址 namespace: abfe8ee6-161b-4f8f-b61f-51663bbfa4f9 # 命名空间分组 group: grey # 共享配置 shared-configs: - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}