摘要: @Component public class Person { @Value("#{11*20}") private int age; @Value("true") private boolean merry; @Value("${person.name}") private String nam 阅读全文
posted @ 2022-04-20 11:13 甜菜波波 阅读(1775) 评论(0) 推荐(0) 编辑
摘要: phone.whiteList={'123','346','456'}@Value("#{${phone.whiteList}}")private List<String> phoneList; 方法2: role.id=[ 1,2,3 ] @ApolloJsonValue("${role.id}" 阅读全文
posted @ 2022-04-20 11:01 甜菜波波 阅读(250) 评论(0) 推荐(0) 编辑