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

查看:28
本文介绍了寻找一个简单的 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

如何访问当前用户会话

我的项目目前正在使用 spring MVC 和 hibernate.
我已经构建了 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天全站免登陆