@Value集合

phone.whiteList={'123','346','456'}

@Value("#{${phone.whiteList}}")
private List<String> phoneList;
 
方法2:
@ApolloJsonValue("${role.id}")
private Set<Long> roleIds;
 
posted @ 2022-04-20 11:01  甜菜波波  阅读(250)  评论(0编辑  收藏  举报