13
Làm cách nào để viết điều kiện sau bằng cách sử dụng thẻ bảo mật mùa xuân?Làm thế nào để đề cập đến không hasRole ('ROLE_ADMIN') trong thẻ bảo mật mùa xuân
<%@ 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>