摘要: public class SunPasswordEncoder implements PasswordEncoder{//@实现加密的方法,既将明文转换为密文的方法public String encodePassword(String rawPass, Object salt)throws Data... 阅读全文
posted @ 2016-01-26 09:09 风又奈何 阅读(4974) 评论(0) 推荐(1) 编辑
摘要: 标签: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 风又奈何 阅读(2218) 评论(0) 推荐(0) 编辑
摘要: spring security中当前用户信息 1:如果在jsp页面中获取可以使用spring security的标签库 在页面中引入标签1 然后:1 username : 即可显示当前用户。2:如果要在程序中获得 看了网上很多写法都是在程序中写这样的代码1 UserDetails userDet... 阅读全文
posted @ 2016-01-26 09:05 风又奈何 阅读(41228) 评论(29) 推荐(2) 编辑
摘要: 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 风又奈何 阅读(499) 评论(0) 推荐(0) 编辑
摘要: 原文地址: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 风又奈何 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 1,建一个web project,并导入所有需要的lib。2,配置web.xml,使用Spring的机制装载:Xml代码contextConfigLocationclasspath:applicationContext*.xmlorg.springframework.web.context.Cont... 阅读全文
posted @ 2016-01-19 14:25 风又奈何 阅读(727) 评论(0) 推荐(0) 编辑
摘要: applicationContext-security.xml: web.xml: index.jsp cha... 阅读全文
posted @ 2016-01-18 09:44 风又奈何 阅读(1346) 评论(0) 推荐(0) 编辑
摘要: web.xml文件中的7个错误的安全配置关于Java的web.xml文件中配置认证和授权有大量的文章。本文不再去重新讲解如何配置角色、保护web资源和设置不同类型的认证,让我们来看看web.xml文件中的一些常见的安全错误配置。(1) 自定义的错误页面没有配置默认情况下,Java Web应用在发生错... 阅读全文
posted @ 2016-01-18 09:28 风又奈何 阅读(789) 评论(0) 推荐(0) 编辑
摘要: 在用poi在EXECL报表设计的时候,遇到单元格合并问题,用到一个重要的函数:CellRangeAddress(int, int, int, int)参数:起始行号,终止行号, 起始列号,终止列号本文地址:http://blog.csdn.net/aerchi/article/details/778... 阅读全文
posted @ 2016-01-08 16:45 风又奈何 阅读(582) 评论(0) 推荐(0) 编辑
摘要: import java.lang.reflect.Type;import com.google.gson.Gson;/*** json 帮助工具*/public final class GsonUtil { private GsonUtil() { } /** * Object转JSON对象 *... 阅读全文
posted @ 2015-12-21 09:32 风又奈何 阅读(236) 评论(0) 推荐(0) 编辑