正常运行时
org.apache.shiro.authc.AuthenticationException: Authentication failed for token submission [org.apache.shiro.authc.UsernamePasswordToken - wjh, rememberMe=false]. Possible unexpected error? (Typical or expected login exceptions should extend from AuthenticationException).
报错
对上了
//构建SecurityManager环境 DefaultSecurityManager defaultSecurityManager = new DefaultSecurityManager(); defaultSecurityManager.setRealm(simpleAccountRealm); //看看是不是少了这一行
应该是少了一行代码吧。