记录一下:nacos1.4.1写properties配置数组list的写法
nacos1.4.1 写properties配置无法识别数组
ignore.urls[0]=/actuator/**
ignore.urls[1]=/auth/oauth/token
data.code=12
正确的写法应该是这样
ignore.urls=/actuator/**,/auth/oauth/token
同时在java中这样写
@Component
@RefreshScope
public class IgnoreUrlsConfig {
@Value("$
原创
2021-01-26 14:19:08 ·
4263 阅读 ·
1 评论