在springboot2.0的配置文件yml自定義數組或List集合

#### 自定義List集合,首先在application.yml文件中配置 custom: mail[0]: username: xxx@xxx.com password: axxx mail[1]: username: xxx@xxx.com password: axxx 而後配置接受類 @Configuration @ConfigurationP
相關文章
相關標籤/搜索