如何在Spring Boot中将子属性(.yml)作为列表获取?

时间:2018-09-15 09:12:28

标签: spring spring-boot properties yaml deserialization

我具有如下属性:

message:
   queue:
      type1:
         source: name1
         target: name2
   queue:
      type2:
         source: name3
         target: name4
   queue:
      type3:
         source: name5
         target: name6

我想将这些属性作为这样的列表获取:

{"name1","name2","name3","name4","name5","name6"}

我怎么得到它?

0 个答案:

没有答案