我想将嵌套列表属性加载到JAVA POJO中 我在一个类A上使用ConfigurationProperties注释从yml加载属性。我的列表是B类型的。这个B对象有它自己的列表属性。@ConfigurationProperties(prefix="prop")List<B> b = new ArrayList<>();
//getters andArr
在我的springboot应用程序(1.5.4.RELEASE)的application.properties中有以下内容my.prefix.one.name=one
my.prefix.two.name=twopublic class MyClass{ //getters and setters如果我使用@