Ste*_*eve 6 spring spring-boot
我在调试模式下运行spring,在努力使它能够识别外部属性文件后,我终于做到了
Loaded config file 'file:C:/Users/udyj/git/hermes-mq-tool.lib/rte/application-ALD-INT.properties'
Run Code Online (Sandbox Code Playgroud)
但是在那行之后
Skipped (empty) config file 'file:C:/Users/udyj/git/hermes-mq-tool.lib/rte/application-ALD-INT.properties'
Run Code Online (Sandbox Code Playgroud)
事实是,它不是空的
Name=ALD-INT
Queues=
QueueManager=whatever
TAS_MQS_PASSWORD=pw
TAS_MQS_USER=name
Run Code Online (Sandbox Code Playgroud)
我这样跑春天
pb = new ProcessBuilder().inheritIO().command(java, "-noverify", "-cp", classpath,
String.format("-Dspring.config.location=%s", "C:\\Users\\udyj\\git\\hermes-mq-tool.lib\\rte\\application-ALD-INT.properties"),
clazz.getCanonicalName()
);
Run Code Online (Sandbox Code Playgroud)
空的配置文件是什么意思?
| 归档时间: |
|
| 查看次数: |
344 次 |
| 最近记录: |