Spring boot loads a list/array from the configuration file to member variables

@Value("#{'${com.xx.mail.default-cc-list}'.split(',')}")
private List<String> ccList;

 

[email protected],[email protected],[email protected]

Guess you like

Origin blog.csdn.net/wuzhong8809/article/details/106388952