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) 编辑
java 集合中将元素倒序排列
摘要:方法一:实现Comparable接口排序package collsort.comparable; package com.cvicse.sort.comparable;public class Cat implements Comparable<Cat> {private int age;priva
阅读全文
posted @
2016-01-27 15:49
风又奈何
阅读(2637)
推荐(0) 编辑
自定义AccessDeniedHandler
摘要:在Spring默认的AccessDeniedHandler中只有对页面请求的处理,而没有对Ajax的处理。而在项目开发是Ajax又是我们要常用的技术,所以我们可以通过自定义AccessDeniedHandler来处理Ajax请求。我们在Spring默认的AccessDeniedHandlerImpl...
阅读全文
posted @
2016-01-27 09:34
风又奈何
阅读(3965)
推荐(0) 编辑
如何在spring中获取request对象
摘要:1.通过注解获取(很简单,推荐):public class Hello {@Autowired HttpServletRequest request; //这里可以获取到request}2.在web.xml中配置一个监听: org.springframework.web.con...
阅读全文
posted @
2016-01-27 09:12
风又奈何
阅读(621)
推荐(0) 编辑
mybatis 做 insert操作的时候返回插入的那条数据的id
摘要:著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。作者:吃丸子的小鹿链接:http://www.zhihu.com/question/20810321/answer/16843223来源:知乎对于支持自动生成主键的数据库(如SQL Server),可以采用以下方式....对于不支持...
阅读全文
posted @
2016-01-26 10:06
风又奈何
阅读(4403)
推荐(0) 编辑
Spring Security-用户密码自定义加密
摘要:public class SunPasswordEncoder implements PasswordEncoder{//@实现加密的方法,既将明文转换为密文的方法public String encodePassword(String rawPass, Object salt)throws Data...
阅读全文
posted @
2016-01-26 09:09
风又奈何
阅读(4997)
推荐(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) 编辑
Spring security 获取当前用户
摘要:spring security中当前用户信息 1:如果在jsp页面中获取可以使用spring security的标签库 在页面中引入标签1 然后:1 username : 即可显示当前用户。2:如果要在程序中获得 看了网上很多写法都是在程序中写这样的代码1 UserDetails userDet...
阅读全文
posted @
2016-01-26 09:05
风又奈何
阅读(41284)
推荐(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) 编辑
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) 编辑
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) 编辑
SpringSecurity自定义过滤器
摘要:applicationContext-security.xml: web.xml: index.jsp cha...
阅读全文
posted @
2016-01-18 09:44
风又奈何
阅读(1369)
推荐(0) 编辑
web.xml文件中的7个错误的安全配置
摘要:web.xml文件中的7个错误的安全配置关于Java的web.xml文件中配置认证和授权有大量的文章。本文不再去重新讲解如何配置角色、保护web资源和设置不同类型的认证,让我们来看看web.xml文件中的一些常见的安全错误配置。(1) 自定义的错误页面没有配置默认情况下,Java Web应用在发生错...
阅读全文
posted @
2016-01-18 09:28
风又奈何
阅读(812)
推荐(0) 编辑
POI 中的CellRangeAddress 参数
摘要:在用poi在EXECL报表设计的时候,遇到单元格合并问题,用到一个重要的函数:CellRangeAddress(int, int, int, int)参数:起始行号,终止行号, 起始列号,终止列号本文地址:http://blog.csdn.net/aerchi/article/details/778...
阅读全文
posted @
2016-01-08 16:45
风又奈何
阅读(600)
推荐(0) 编辑