shiro学习
熊小天
这个作者很懒,什么都没留下…
展开
-
shiro学习(一)---认证入门程序
1、导入jar包 2、创建shiro-first.ini文件[users] zhangsan=111111 lisi=22222 3、创建AuthenticationTest测试类public class AuthenticationTest { // 用户登陆和退出 @Test public void testLoginAndLogout() { // 创建s原创 2017-12-03 13:14:32 · 198 阅读 · 0 评论 -
shiro学习(二)---授权入门程序
1、创建shiro-permission.ini文件#用户 [users] #用户张三的密码是123,此用户具有role1和role2两个角色 zhangsan=123,role1,role2 wang=123,role2#权限 [roles] #角色role1对资源user拥有create、update权限 role1=user:create,user:update #角色role2对资源user原创 2017-12-03 18:24:54 · 149 阅读 · 0 评论