【spring】@Value(“#{}“)与@Value(“${}“)的区别

前言

转载:https://www.cnblogs.com/But-you/p/10682186.html

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

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

你可能感兴趣的:(spring)