HTTP Status 500 - Failed to evaluate expression 'ROLE_USER' 程序员文章站 2022-07-11 08:28:33 ... ## 错误的原因是:如果你开启了springEl表达式:use-expressions=“true” 则要把过滤规则改成 <security:intercept-url pattern="/" access=“hasRole(‘ROLE_USER’)”/> 如果你的配置如下一样为false <security:http auto-config=“true” use-expressions=“false”> 则把过滤规则改成: <security:intercept-url pattern="/**" access="ROLE_USER" /> ** 相关标签: HTTP Status 500 - Failed to evaluat 上一篇: socket编程(TCP) 下一篇: Javascript学习笔记(详)(三)——函数表达式与DOM 推荐阅读 HTTP Status 500 - Request processing failed; nested exception is java.lang.Illeg HTTP Status 500 - Failed to evaluate expression 'ROLE_USER' HTTP Status 500 - Request processing failed; nested exception is java.lang.Illeg