错误信息
解决方案
在凭证匹配器添加下面圈红代码:
/**
* 方法名:
* 功能:凭证匹配器
* 描述:指定shiro加密方式和次数
*/
@Bean(name = "customCredentialsMatch")
public CustomCredentialsMatch hashedCredentialsMatch(){
CustomCredentialsMatch hashedCredentialsMatch = new CustomCredentialsMatch();
hashedCredentialsMatch.setHashAlgorithmName("MD5");
hashedCredentialsMatch.setHashIterations(1024);
hashedCredentialsMatch.setStoredCredentialsHexEncoded(true);
return hashedCredentialsMatch;
}