Spring Security Upgrade会破坏安全授权标记

时间:2017-08-15 14:02:02

标签: java spring spring-mvc spring-security

我暂时升级了我的Spring应用程序,但是有些测试发现了一个破坏的页面。我使用的是Spring Core 4.2.5.RELEASE和Security 3.2.0.RELEASE。我有这个.jsp片段:

<% boolean userIsLocked = false; %>

然后这个授权标签:

<sec:authorize access="isAuthenticated() && !userIsLocked">

我的根本原因是500错误:

org.springframework.expression.spel.SpelEvaluationException: EL1008E:(pos 21): Property or field 'userIsLocked' cannot be found on object of type 'org.springframework.security.web.access.expression.WebSecurityExpressionRoot' - maybe not public?

这曾经工作过。但是我之前做过升级,但从那以后没有测试过这个页面,所以我认为它与之有关。

0 个答案:

没有答案
相关问题