【发布时间】:2012-07-04 01:24:03
【问题描述】:
我正在开发一个 jsf 应用程序,我想使用 Spring-Secrity 来验证我的用户,我正在使用休眠,需要的是: - 使用 Spring-Security 对用户进行身份验证。 - 已认证的用户保存在会话 bean 中。 - 我需要一个注销方法。 - 我需要确切地知道要添加到我的项目中的罐子。 - 在我的数据库中,每个用户都有一个角色(用户或管理员)。
我发现的教程的问题是,在身份验证后没有保存有关当前用户的信息,而我的情况是,我的会话 bean 中确实需要一个 currentuser。
我该怎么做?
【问题讨论】:
标签: hibernate jsf authentication spring-security