Spring boot 从配置文件加载一个列表/数组到成员变量

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

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

猜你喜欢

转载自blog.csdn.net/wuzhong8809/article/details/106388952