Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们有一个包含 2 个用户组的网站:管理员组和客户组。这些组设置了不同的限制,因此管理员组看到一组产品,而客户组看到另一组。我们正在使用基于 Tomcat 6.0.29 的自定义服务器。我们也在使用 Spring Security。
Spring 是否可以允许管理员从客户组的角度查看页面,而无需强制注销管理员用户?如果是这样,是否有显示弹簧代码的链接?
谢谢!:) Krt_Malta
我在这里找到了答案:
同一会话中的不同用户限制
Spring Security 中的 SwitchUserFilter 允许在不注销的情况下切换用户 :)