目录

org.apache.shiro.authc.AuthenticationException: No account information found for authentication token [com.exam.core.realm.CustomLoginToken - admin, rememberMe=false] by this Authenticator instance.  Please check that it is configured correctly.

利用debug

doAuthenticate(token)是我自己实现的方法 继续更进

发现是空 于是找到原因

分发的时候 Realm命名为xxxRealm 但loginType没有对应上 修改即可