org.apache.shiro.authc.AuthenticationException: Authentication failed for token submission [org.apache.shiro.authc.UsernamePasswordToken - xxs, rememberMe=false]. Possible unexpected error? (Typical or expected login exceptions should extend from AuthenticationException).
检查代码发现,删了一行代码:
//1.构建SecurityManager环境
DefaultSecurityManager defaultSecurityManager = new DefaultSecurityManager();
defaultSecurityManager.setRealm(simpleAccountRealm); //少了这一行
加上之后就ok了