摘要: subject.hasRole("") ; subject.hasRoles(List); subject.hasAllRoles(); subject.isPermitted(""); 修改ini文件 #配置用户名[users]zhangsan=123456,role1lisi=123456,ro 阅读全文
posted @ 2019-12-14 16:47 一半人生 阅读(673) 评论(0) 推荐(0)
摘要: 使用静态shiro.ini文件完成认证 创建项目到爆 <dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-core</artifactId> <version>1.4.1</version> </dependency> 阅读全文
posted @ 2019-12-14 14:42 一半人生 阅读(195) 评论(0) 推荐(0)