1.org.apache.shiro.authc.UnknownAccountException: Realm[com.coracle.fast.service.impl.shiro.ShiroRealm@3ef2de86]
不能返回空,Realm获取值时可能是个null值,也可能没有获取到这个账号信息(我当时发生一个错误是因为,把user.ini文件中的标签users写成了user,故没有获取到这个文件)
2.org.apache.shiro.authc.IncorrectCredentialsException:
Submitted credentials for token [org.apache.shiro.authc.UsernamePasswordToken - Mark, rememberMe=false] did not match the expected credentials.
验证信息不通过,可能密码错误
3.org.apache.shiro.authz.UnauthorizedException: Subject does not have role [admin1]
主体没有admin1的角色权限.关键字role
4.org.apache.shiro.authz.UnauthorizedException: Subject does not have permission [user:update]
主体没有user:update的使用权限.关键字permission