1234567891011121314151617181920 |
- spring:
- application:
- name: nacos-demo
- cloud:
- nacos:
- # 配置nacos的配置中心
- config:
- # # 设定命名空间
- namespace: 83172eef-1ce7-4be3-9a02-85ab277e3120
- server-addr: 127.0.0.1:8848
- # 2.4.0版本支持无账户登录 所以不需要配置用户名和密码
- # 加载多个配置
- extension-configs:
- # 使用数组格式 配置每个data-id 使用refresh声明是否实时刷新
- - data-id: redis.properties
- refresh: true
- - data-id: jdbc.properties
- refresh: true
- username: nacos
- password: nacos
|