如何在基于代码的配置中启用
Spring Security配置的use-expressions选项?需要此选项才能为Thymeleaf启用
Expression-Based Access Control使用.
在XML配置中,它看起来像这样:
... <http auto-config="true" use-expressions="true" > ... </http> ...