Spring boot 从Spring云配置加载属性数组

Spring boot 从Spring云配置加载属性数组,spring-boot,Spring Boot,例如,my application.properties: my.properties.file.toload.myArray[0].property1=property1FirstValue my.properties.file.toload.myArray[0].property2=property1SecondValue my.properties.file.toload.myArray[1].property1=property2FirstValue my.properties.file

例如,my application.properties:

my.properties.file.toload.myArray[0].property1=property1FirstValue
my.properties.file.toload.myArray[0].property2=property1SecondValue
my.properties.file.toload.myArray[1].property1=property2FirstValue
my.properties.file.toload.myArray[1].property2=property2SecondValue
我有一门课,像:

class ExampleClass {
  String property1;
  String property2;
}

我还有一个类,我想用这种方式注入这个值:

public class ExamplePlaceHolderClass {
  @Value
  List<ExampleClass> myArray;
}
公共类示例占位符类{
@价值观
列表myArray;
}
我必须在@Value附近放置什么才能检索数组?例如@Value(${my.properties.file.toload.myArray}”)