寻找一个简单的Spring安全示例 [英] Looking for a Simple Spring security example

查看:87
本文介绍了寻找一个简单的Spring安全示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是spring-security(Java)的新手,我正在寻找一个很好且简单的示例:

I am new to spring-security (Java) and I am looking for a good and simple example of:

  1. 如何使用Spring Security进行登录和注销

  1. 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安全示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆