ae:org.apache.shiro.authc.AuthenticationException: Authentication token of type [class org.apache.shiro.authc.UsernamePasswordToken] could not be authenticated by any configured realms. Please ensure

看问题是说要保证有一个realm正确,但是之前运行就一直成功,后来就不行了。有可能是:以为自己输入了正确的用户名和密码,结果是因为用户名前面添加了空格导致了这个错误发生。

实质问题是:你输入的用户名和密码根本就没有在realm中配置过,所以肯定不行了

 

posted @ 2019-03-05 10:51  慧妃不美  阅读(2407)  评论(0编辑  收藏  举报