【发布时间】:2017-06-30 08:11:04
【问题描述】:
我正在尝试在 Spring Boot 中配置多个“.yml”,例如...
application.yml
spring:
profile: local
api.yml
spring:
profile: local
myapi:
url: localhost/...
所以,我在 @ConfigurationProperties 中找到了位置方法。 但是,它在 1.4.x 中已被弃用
Deprecated. as of 1.4 in favor of configuring the environment directly with additional locations
我该如何配置这种情况?
【问题讨论】: