Spring,已跳过(空)配置文件

时间:2018-10-05 14:34:26

标签: spring spring-boot

我在调试模式下运行spring,在努力让它识别外部属性文件后,我终于做到了

Loaded config file 'file:C:/Users/udyj/git/hermes-mq-tool.lib/rte/application-ALD-INT.properties'

但是在那一行之后

Skipped (empty) config file 'file:C:/Users/udyj/git/hermes-mq-tool.lib/rte/application-ALD-INT.properties'

虽然是事实,但它不是空的

Name=ALD-INT
Queues=
QueueManager=whatever
TAS_MQS_PASSWORD=pw
TAS_MQS_USER=name

我这样跑春天,

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()
            );

空的配置文件是什么意思?

1 个答案:

答案 0 :(得分:2)

这是一个开放的issue

误导性日志记录是其不幸的副作用 在没有(也不应该)的通用位置执行 了解.properties和.yaml配置之间的区别 文件。

相关问题