【发布时间】:2017-03-21 11:34:54
【问题描述】:
我正在使用 Spring Boot 框架,是否可以在 appllication.properties 文件中定义 HashMap 结构列表并在我的 java 类中使用该列表。这是属性文件中的示例结构。
prefix:
listProp1:
- listValue1
- listValue2
- listValue3
listProp2:
- listValue1
- listValue2
- listValue3
listProp3:
- listValue1
- listValue2
- listValue3
【问题讨论】:
标签: java spring-boot properties-file