update yml config
This commit is contained in:
@@ -36,9 +36,7 @@ public class PropertiesUtils {
|
|||||||
// 默认加载的文件,可通过继承覆盖(若有相同Key,优先加载后面的)
|
// 默认加载的文件,可通过继承覆盖(若有相同Key,优先加载后面的)
|
||||||
public static final String[] DEFAULT_CONFIG_FILE = new String[]{
|
public static final String[] DEFAULT_CONFIG_FILE = new String[]{
|
||||||
"classpath:application.yml", "classpath:config/application.yml",
|
"classpath:application.yml", "classpath:config/application.yml",
|
||||||
"classpath:bootstrap.yml", "classpath:config/bootstrap.yml",
|
|
||||||
"file:application.yml", "file:config/application.yml",
|
"file:application.yml", "file:config/application.yml",
|
||||||
"file:bootstrap.yml", "file:config/bootstrap.yml",
|
|
||||||
};
|
};
|
||||||
|
|
||||||
private static final Logger logger = PropertiesUtils.initLogger();
|
private static final Logger logger = PropertiesUtils.initLogger();
|
||||||
|
|||||||
@@ -60,15 +60,15 @@ spring:
|
|||||||
|
|
||||||
# 服务注册和配置
|
# 服务注册和配置
|
||||||
nacos:
|
nacos:
|
||||||
|
server-addr: 192.168.56.1:8848
|
||||||
|
username: nacos
|
||||||
|
password: nacos
|
||||||
discovery:
|
discovery:
|
||||||
server-addr: 192.168.56.1:8848
|
namespace: ~
|
||||||
|
group: jeesite-cloud
|
||||||
config:
|
config:
|
||||||
server-addr: 192.168.56.1:8848
|
namespace: ~
|
||||||
file-extension: yml
|
|
||||||
group: jeesite-cloud-yml
|
group: jeesite-cloud-yml
|
||||||
extension-configs:
|
|
||||||
- data-id: application.yml
|
|
||||||
group: jeesite-cloud-yml
|
|
||||||
|
|
||||||
# 服务发现与注册优选IP前缀
|
# 服务发现与注册优选IP前缀
|
||||||
#inetutils:
|
#inetutils:
|
||||||
@@ -47,6 +47,16 @@ spring:
|
|||||||
# 当前环境名称(注意:不可设置为 test 它是单元测试专用的名称)
|
# 当前环境名称(注意:不可设置为 test 它是单元测试专用的名称)
|
||||||
profiles:
|
profiles:
|
||||||
active: default
|
active: default
|
||||||
|
|
||||||
|
# 加载的配置文件
|
||||||
|
config:
|
||||||
|
# import:
|
||||||
|
# - 'optional:configserver:'
|
||||||
|
import:
|
||||||
|
- 'nacos:application.yml'
|
||||||
|
- 'nacos:application-${spring.profiles.active}.yml'
|
||||||
|
- 'nacos:${spring.application.name}.yml'
|
||||||
|
- 'nacos:${spring.application.name}-${spring.profiles.active}.yml'
|
||||||
|
|
||||||
# 分布式配置中心
|
# 分布式配置中心
|
||||||
cloud:
|
cloud:
|
||||||
@@ -65,22 +75,15 @@ spring:
|
|||||||
|
|
||||||
# 服务注册和配置
|
# 服务注册和配置
|
||||||
nacos:
|
nacos:
|
||||||
|
server-addr: 127.0.0.1:8848
|
||||||
|
username: nacos
|
||||||
|
password: nacos
|
||||||
discovery:
|
discovery:
|
||||||
server-addr: 127.0.0.1:8848
|
|
||||||
username: nacos
|
|
||||||
password: nacos
|
|
||||||
namespace: ~
|
namespace: ~
|
||||||
group: jeesite-cloud
|
group: jeesite-cloud
|
||||||
config:
|
config:
|
||||||
server-addr: 127.0.0.1:8848
|
|
||||||
username: nacos
|
|
||||||
password: nacos
|
|
||||||
namespace: ~
|
namespace: ~
|
||||||
file-extension: yml
|
|
||||||
group: jeesite-cloud-yml
|
group: jeesite-cloud-yml
|
||||||
extension-configs:
|
|
||||||
- data-id: application.yml
|
|
||||||
group: jeesite-cloud-yml
|
|
||||||
|
|
||||||
# 服务发现与注册优选IP前缀
|
# 服务发现与注册优选IP前缀
|
||||||
#inetutils:
|
#inetutils:
|
||||||
Reference in New Issue
Block a user