2016-01-20 43 views

回答

0

You can do that by conditionally showing the link. That is show/hide link based on the user's role. Spring security Tag Libraries will help you for that. Example:

<sec:authorize access="hasRole('ROLE_ADMIN')"> 
    <td><a href="<c:url value="/page1.htm"/>">Admin Access Page</a></td> 
</sec:authorize> 

For more info check this.