问题描述
我是spring-security(Java)的新手,我正在寻找一个很好且简单的示例:
I am new to spring-security (Java) and I am looking for a good and simple example of:
-
如何使用Spring Security进行登录和注销
How to use spring security for login and logout
确保该会话存在于每个页面上,如果没有,则再次重定向到登录名
Make sure that the session exists on every page and if not redirect to the login again
如何访问当前的用户会话
How get access to the current User Session
我的项目目前正在使用Spring MVC,并处于休眠状态.
我已经构建了loginAPI + loginDAO,现在需要结合安全性并确保某些页面的安全.
My project is currently working with spring MVC, and hibernate.
I have built the loginAPI + loginDAO, I need now to combine the security and make some of the pages secured.
我搜索了教程,但是其中很多非常复杂.
I searched for tutorials, but a lot of them are very complicated.
推荐答案
好.我认为这是到目前为止我所见过的最好的!
http://krams915.blogspot.com/2010/12/spring -security-mvc-integration_18.html
Well.This is I think by far is the best i have seen so far!
http://krams915.blogspot.com/2010/12/spring-security-mvc-integration_18.html
这篇关于寻找一个简单的Spring安全示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!