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

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)

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

mah*_*sif 2

这是一个悬而未决的问题

误导性日志记录是在不(也不应该)理解 .properties 和 .yaml 配置文件之间差异的通用位置执行的一个不幸的副作用。