【发布时间】:2016-02-23 20:34:04
【问题描述】:
我正在尝试部署一个无法更改代码的 Spring Boot 应用程序。我更喜欢使用 YML 来配置它,但是我遇到了这个 YAML 限制:
元素有一个值或一个子元素,从不兼有。
应用程序的配置方案包括多个实例:
com.company.feature=default
com.company.feature.config=value
有什么方法可以将这些配置为 YAML,因为以下内容将是无效的:
com:
company:
feature: default
config: value
【问题讨论】:
标签: spring spring-boot yaml