摘要: 转载地址 https://my.oschina.net/Tsher2015/blog/655191 package com.sojson;import org.apache.shiro.crypto.hash.Md5Hash;import org.apache.shiro.crypto.hash.S 阅读全文
posted @ 2017-03-23 17:33 albert_think 阅读(762) 评论(0) 推荐(0) 编辑
摘要: 转载:https://my.oschina.net/Tsher2015/blog/655167 测试实例: package com.sojson;import static org.junit.Assert.*;import org.apache.shiro.SecurityUtils;import 阅读全文
posted @ 2017-03-23 17:27 albert_think 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 转载地址 https://my.oschina.net/Tsher2015/blog/655162 测试实例: package com.sojson;import static org.junit.Assert.*;import org.apache.shiro.SecurityUtils;impo 阅读全文
posted @ 2017-03-23 16:55 albert_think 阅读(806) 评论(0) 推荐(0) 编辑
摘要: 转载地址 https://my.oschina.net/Tsher2015/blog/654993 摘要: 核心JAR包:shiro-core.jar 1.shiro流程: 1.1.使用数据源,也就是RealM初始化SecurityManagerFactory. 1.2.得到SecurityMana 阅读全文
posted @ 2017-03-23 16:26 albert_think 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 转载地址:https://my.oschina.net/Tsher2015/blog/655132 import javax.naming.AuthenticationException;import org.apache.shiro.SecurityUtils;import org.apache. 阅读全文
posted @ 2017-03-23 16:20 albert_think 阅读(1218) 评论(0) 推荐(0) 编辑