使用JavaEE的ServerAuthModule模块和web.xml进行相应配置,实现对用户的权限控制

ServerAuthModule这里不细说,能够自行百度。 重点在注释:web <!-- 声明用于安全约束的角色 --> <security-role> <role-name>spx.main</role-name> </security-role> <security-role> <role-name>spx.user</role-nam
相关文章
相关标签/搜索