Shiro中new String((char[])token.getCredentials());与 token.getCredentials().toString();的区别
String password = new String((char[])token.getCredentials());
以上:这个可以正常通过测试!
String password = token.getCredentials().toString();
报错:
org.apache.shiro.authc.IncorrectCredentialsException
at com.a
原创
2017-11-28 10:43:10 ·
8641 阅读 ·
0 评论