shiro 验证失败后,shiroLoginFailure中保存的一直是AuthenticationException类的名称,得不到AuthenticationException子类的名称 .
比如我在doGetAuthenticationInfo中抛出UnknownAccountException异常,但是shiroLoginFailure中不会是UnknownAccountException的类名,而是AuthenticationException的。
有人碰到这种情况吗?
shiro版本1.3.2
无论使用FormAuthenticationFilter,还是 SecurityUtils.getSubject().login方法,抛出任何AuthenticationException的子类异常,shiroLoginFailure中保存的一直是AuthenticationException类的名称
知道原因了。使用了ModularRealmAuthenticator的原因。无解。