【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;

猜你喜欢

转载自blog.csdn.net/s1441101265/article/details/107608372