Spring security 在spring security中根据授予用户的权限隐藏jsp内容

Spring security 在spring security中根据授予用户的权限隐藏jsp内容,spring-security,Spring Security,在我的项目中,有4个表: Users ----- Id First_Name Last_Name .... ... role_id foreign key referenced by Role Role ---- Id Role_Name Permission ---------- Id Permission_Name RolePermissions --------------- Role_Id foreign key Permission_Id foreign Key 我需要根据权限

在我的项目中,有4个表:

Users
-----
Id
First_Name
Last_Name
....
...
role_id foreign key referenced by Role

Role
----
Id
Role_Name

Permission
----------
Id
Permission_Name

RolePermissions
---------------
Role_Id foreign key
Permission_Id foreign Key

我需要根据权限表中具有权限的用户角色隐藏welcome.jsp的内容。我在其中定义了权限名称,如u.user.create、u.user.view等。我搜索了很多,但没有找到具体的答案

您是否也在使用struts2。那么请查看这个网站


感谢您的回复,但是我正在使用SpringMVC作为视图和控制器层,对于dao,我正在使用hibernate,使用注释,我正在做所有这些工作。因此,请作出相应的回应。