1
我有这样的事情使用变量if语句
<c:forEach var="authority" items="#{SPRING_SECURITY_CONTEXT.authentication.principal.authorities}">
<c:if test="${fn:contains(${authority} , ROLE_ADMIN) }">
</c:if>
</c:forEach>
,但它不工作,任何IDE我怎样才能使这个?也许还有其他的方式?
//编辑
你如果测试
这不是一个问题,一个刚刚misstyped –