This commit is contained in:
wol 2025-10-11 21:18:25 +08:00
parent 9c162e611c
commit 01d67d2af5
5 changed files with 18 additions and 16 deletions

View File

@ -18,6 +18,7 @@
<module>wol-common-redis</module>
<module>wol-common-json</module>
<module>wol-common-satoken</module>
<module>wol-common-naocs</module>
</modules>
<packaging>pom</packaging>

View File

@ -3,13 +3,11 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.agileboot</groupId>
<artifactId>agileboot</artifactId>
<artifactId>agileboot-common</artifactId>
<version>1.0.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<artifactId>wol-common-naocs</artifactId>
<packaging>jar</packaging>
<name>wol-common-naocs</name>
<url>http://maven.apache.org</url>

View File

@ -0,0 +1,14 @@
spring:
cloud:
nacos:
config:
server-addr: http://192.168.12.168:8848 # 指定 Nacos 配置中心的服务器地址
group: DEFAULT_GROUP # 所属组
namespace: public # 命名空间
file-extension: yaml # 配置文件格式
refresh-enabled: true # 是否开启动态刷新
discovery:
enabled: true # 启用服务发现
group: DEFAULT_GROUP # 所属组
namespace: public # 命名空间
server-addr: http://192.168.12.168:8848 # 指定 Nacos 配置中心的服务器地址

View File

@ -1,14 +1,3 @@
spring:
cloud:
nacos:
config:
server-addr: http://192.168.12.168:8848 # 指定 Nacos 配置中心的服务器地址
group: DEFAULT_GROUP # 所属组
namespace: public # 命名空间
file-extension: yaml # 配置文件格式
refresh-enabled: true # 是否开启动态刷新
discovery:
enabled: true # 启用服务发现
group: DEFAULT_GROUP # 所属组
namespace: public # 命名空间
server-addr: http://192.168.12.168:8848 # 指定 Nacos 配置中心的服务器地址
config:
import: classpath:nacos.yml