Spring,跳过(空)配置文件

Spring,跳过(空)配置文件,spring,spring-boot,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.prop

我在调试模式下运行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()
            );
空配置文件是什么意思?

这是一个开放的配置文件

这种误导性的日志记录是其存在的一个不幸的副作用 在不(也不应该)的一般位置执行 了解.properties和.yaml配置之间的区别 档案


你找到答案了吗?这里有同样的问题,不知道为什么它总是告诉文件是空的而不是空的!