apollo 配置 list

远方的人 / 2023-08-02 / 原文

和字符串一样。 多个值在字符串中用逗号隔开即可。

如 xx: "a,b,c,d"

读取也和字符串一样 @Value("${xx}")

 

网上查到都是 @Value("#{$xx}}") 天坑。