随笔 - 266,  文章 - 1,  评论 - 66,  阅读 - 85万

随笔分类 -  spring-security

页面获取Spring Security登录用户
摘要:链接地址:http://blog.csdn.net/zmx729618/article/details/51914836 阅读全文
posted @ 2017-02-08 11:21 风又奈何 阅读(372) 评论(0) 推荐(0) 编辑
spring security:ajax请求的session超时处理
摘要:当前端在用ajax请求时,如果没有设置session超时时间并且做跳转到登录界面的处理,那么只是靠后台是很难完成超时的一系列动作的;但是如果后台 没有封装一个ajax请求公共类,那么在ajax请求上下功夫解决session超时的问题是不行的,只有考虑在后台或者前台通过全局来进行对ajax请求超时的 阅读全文
posted @ 2017-01-05 14:24 风又奈何 阅读(4491) 评论(0) 推荐(1) 编辑
使用SpringSecurity3用户验证(异常信息,验证码)
摘要:1. 自定义user-service后,封装自定义异常信息返回 通常情况下,抛UsernameNotFoundException异常信息是捕捉不了,跟踪源码后发现 Java代码 try { user = retrieveUser(username, (UsernamePasswordAuthenti 阅读全文
posted @ 2016-02-23 09:44 风又奈何 阅读(4661) 评论(0) 推荐(0) 编辑
spring security 3中的10个典型用法小结
摘要:spring security 3比较庞大,但功能很强,下面小结下spring security 3中值得 注意的10个典型用法 1)多个authentication-provide可以同时使用 Java代码 <authentication-manager alias='authentication 阅读全文
posted @ 2016-02-15 16:25 风又奈何 阅读(1049) 评论(0) 推荐(0) 编辑
springsecurity源码查看网址
摘要:http://www.boyunjian.com/javasrc/org.springframework.security/spring-security-web/3.1.3.RELEASE/_/org/springframework/security/web/session/HttpSession 阅读全文
posted @ 2016-01-28 14:14 风又奈何 阅读(365) 评论(0) 推荐(0) 编辑
自定义AccessDeniedHandler
摘要:在Spring默认的AccessDeniedHandler中只有对页面请求的处理,而没有对Ajax的处理。而在项目开发是Ajax又是我们要常用的技术,所以我们可以通过自定义AccessDeniedHandler来处理Ajax请求。我们在Spring默认的AccessDeniedHandlerImpl... 阅读全文
posted @ 2016-01-27 09:34 风又奈何 阅读(3965) 评论(0) 推荐(0) 编辑
Spring Security-用户密码自定义加密
摘要:public class SunPasswordEncoder implements PasswordEncoder{//@实现加密的方法,既将明文转换为密文的方法public String encodePassword(String rawPass, Object salt)throws Data... 阅读全文
posted @ 2016-01-26 09:09 风又奈何 阅读(4997) 评论(0) 推荐(1) 编辑
关于Spring Security 3获取用户信息的问题
摘要:标签:spring security 3标签获取用户信息2013-01-05 10:405342人阅读评论(0)收藏举报分类:Spring(25)java(70)前端(7)目录(?)[+]原文:http://blog.csdn.net/jjk_02027/article/details/654488... 阅读全文
posted @ 2016-01-26 09:07 风又奈何 阅读(2251) 评论(0) 推荐(0) 编辑
Spring security 获取当前用户
摘要:spring security中当前用户信息 1:如果在jsp页面中获取可以使用spring security的标签库 在页面中引入标签1 然后:1 username : 即可显示当前用户。2:如果要在程序中获得 看了网上很多写法都是在程序中写这样的代码1 UserDetails userDet... 阅读全文
posted @ 2016-01-26 09:05 风又奈何 阅读(41284) 评论(29) 推荐(2) 编辑
Spring Security3实现,权限动态获取
摘要:Spring Security3实现,权限动态获取原文http://blog.csdn.net/yangwei19680827/article/details/9359113主题网络安全SpringHTML采用Maven管理,Spring Mvc Jpa等技术pom.xml 4.0.0 ... 阅读全文
posted @ 2016-01-24 20:16 风又奈何 阅读(505) 评论(0) 推荐(0) 编辑
Spring Security教程
摘要:原文地址:http://blog.csdn.net/jaune161/article/details/17640071http://blog.csdn.net/jaune161/article/details/18736687spring-security官网网址:http://docs.sprin... 阅读全文
posted @ 2016-01-20 21:59 风又奈何 阅读(270) 评论(0) 推荐(0) 编辑
spring security 3 自定义认证,授权示例
摘要:1,建一个web project,并导入所有需要的lib。2,配置web.xml,使用Spring的机制装载:Xml代码contextConfigLocationclasspath:applicationContext*.xmlorg.springframework.web.context.Cont... 阅读全文
posted @ 2016-01-19 14:25 风又奈何 阅读(734) 评论(0) 推荐(0) 编辑
SpringSecurity自定义过滤器
摘要:applicationContext-security.xml: web.xml: index.jsp cha... 阅读全文
posted @ 2016-01-18 09:44 风又奈何 阅读(1369) 评论(0) 推荐(0) 编辑


< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示