Mapping list in Yaml to list of objects in Spring Boot

后端 未结 6 821
暖寄归人
暖寄归人 2020-11-29 03:52

In my Spring Boot app I have application.yaml configuration file with following content. I want to have it injected as a Configuration object with list of channel configurat

6条回答
  •  日久生厌
    2020-11-29 04:20

    for me the fix was to add the injected class as inner class in the one annotated with @ConfigurationProperites, because I think you need @Component to inject properties.

提交回复
热议问题