在shiro.ini
我声明以下 SQL 查询:
jdbcRealm.authenticationQuery = SELECT password FROM Person WHERE email = ?
jdbcRealm.userRolesQuery = SELECT id FROM SecurityRole WHERE id = (SELECT securityRole_id FROM Person WHERE email = ?)
jdbcRealm.permissionsQuery = SELECT action FROM SecurityPermission WHERE id = (SELECT permissions_id FROM securityrole_securitypermission WHERE securityrole_id = ?)
当我用
在数据库上运行它替换最后?
一个查询中的1 有=“休息:*”。1
rest:*
SecurityUtils.getSubject().isPermitted(new WildcardPermission("rest"));
false
securityrole_securitypermission
securitypermission
action