0
点赞
收藏
分享

微信扫一扫

学习在Springboot使用shiro过程中遇到的一些问题和解决方式

少_游 2022-02-09 阅读 86

shiro部分1

Quickstart需要改动的地方

import org.apache.shiro.ini.IniSecurityManagerFactory;
import org.apache.shiro.lang.util.Factory;

ini,lang不存在可分别改成config,util

import org.apache.shiro.config.IniSecurityManagerFactory;
import org.apache.shiro.util.Factory;

shiro认证中MD5加密

在AuthorizingRealm的子类中吧加密方式传递给父类

public UserRealm(){
    super(new Md5CredentialsMatcher());
}

Spring自带MD5加密方式

DigestUtils.md5Digest(password);
举报

相关推荐

0 条评论