mirror of
https://github.com/weizhiqiang1995/erp-pro.git
synced 2024-12-28 10:54:51 +08:00
feat: 配置文件修改
This commit is contained in:
parent
5a7533d8fb
commit
944c847dc4
1 changed files with 5 additions and 4 deletions
|
@ -5,18 +5,19 @@ spring:
|
|||
application:
|
||||
name: skyeye-pro-${spring.profiles.active} # 服务名
|
||||
profiles:
|
||||
active: dev
|
||||
active: public
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
server-addr: localhost:9000 # 配置服务注册nacos地址
|
||||
server-addr: 172.18.92.40:9000 # 配置服务注册nacos地址
|
||||
namespace: ${spring.profiles.active} # 配置命名空间
|
||||
config:
|
||||
# 指定nacos server的地址
|
||||
server-addr: localhost:9000
|
||||
server-addr: 172.18.92.40:9000
|
||||
# 配置文件后缀
|
||||
file-extension: yml
|
||||
# 命名空间 常用场景之一是不同环境的配置的区分隔离,例如开发测试环境和生产环境的资源(如配置、服务)隔离等
|
||||
namespace: dev
|
||||
namespace: ${spring.profiles.active}
|
||||
# 支持多个共享 Data Id 的配置,优先级小于ext-config,自定义 Data Id 配置 属性是个集合,内部由 Config POJO 组成。Config 有 3 个属性,分别是 dataId, group 以及 refresh
|
||||
ext-config:
|
||||
- data-id: skyeye-common.yml # 配置文件名-Data Id
|
||||
|
|
Loading…
Reference in a new issue