Dil*_*epa 20 java spring spring-mvc taglib spring-security
如何使用spring security taglib编写以下条件?
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<sec:authorize access="not of hasRole('ROLE_ADMIN')">
<div> show these for only non admins </div>
</sec:authorize>
Run Code Online (Sandbox Code Playgroud)
Fre*_*ose 47
<sec:authorize access="!hasRole('ROLE_ADMIN')">
<div> show these for only non admins </div>
</sec:authorize>
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
17625 次 |
最近记录: |