spel表达式就是spring表达式。
在java代码中,还有这种写法:

@Value("#{'${auth.filter.exclude-urls}'.split(',')}")
private List<String> authFilterExcludeUrls;


//==================
@Value("#{'${list}'.split(',')}") private List<String> list; @Value("#{${maps}}") private Map<String,String> maps; @Value("#{${redirectUrl}}") private Map<String,String> redirectUrl;


配置文件

list: topic1,topic2,topic3
maps: "{key1: 'value1', key2: 'value2'}"
redirectUrl: "{sso_client_id: '${id}',sso_client_secret: '${secret}',redirect_url: '${client.main.url.default}'}"

 

相关文章:

  • 2022-12-23
  • 2021-12-30
  • 2022-02-08
  • 2021-09-20
  • 2021-07-11
  • 2020-03-26
  • 2021-11-03
猜你喜欢
  • 2021-05-22
  • 2022-12-23
  • 2022-03-03
  • 2021-11-23
  • 2021-09-14
  • 2021-11-30
  • 2022-12-23
相关资源
相似解决方案