配置文件改成nacos配置
This commit is contained in:
15
src/main/resources/bootstrap.yml
Normal file
15
src/main/resources/bootstrap.yml
Normal file
@ -0,0 +1,15 @@
|
||||
spring:
|
||||
application:
|
||||
name: sczx-car # 应用名称,对应 Nacos 配置的 dataId
|
||||
cloud:
|
||||
nacos:
|
||||
server-addr: 115.190.8.52:8848 # Nacos 服务器地址
|
||||
config:
|
||||
group: DEFAULT_GROUP # 配置分组
|
||||
file-extension: yaml # 配置文件格式
|
||||
timeout: 5000 # 配置读取超时时间
|
||||
# 添加共享配置
|
||||
shared-configs:
|
||||
- data-id: shared-config.yaml
|
||||
group: DEFAULT_GROUP
|
||||
refresh: true # 是否支持动态刷新
|
||||
Reference in New Issue
Block a user