在shiro.ini我聲明如下SQL查詢: jdbcRealm.authenticationQuery = SELECT password FROM Person WHERE email = ?
jdbcRealm.userRolesQuery = SELECT id FROM SecurityRole WHERE id = (SELECT securityRole_id FROM Person
我有web應用程序有4個角色,有各自的默認頁 1.admin // have access to all page
2.developer // have access to personal page
3.editor // have access to personal page
4.deo // have access to personal page
當用戶以管理員身份登錄,他可