@ConfigurationProperties("a") @Data public class InitSetting { private List<List<String>> b; }
application.yml
a: b: - 'string_11,string_12' - 'string_21,string_22' - 'string_31,string_32'
对应docker compose 的environment
environment: - a_b_0_0=string_11 - a_b_0_1=string_12 - a_b_1_0=string_21 - a_b_1_1=string_22 - a_b_2_0=string_31 - a_b_2_1=string_32