为了账号安全,请及时绑定邮箱和手机立即绑定

正在回答

2 回答

在spring boot中使用shiro,可以直接依赖 spring boot的shiro启动器依赖,然后主要就是配置文件修改【yml或者properties】


<dependency>
    <groupId>org.apache.shiro</groupId>
    <artifactId>shiro-spring-boot-starter</artifactId>
    <version>1.4.0</version>
</dependency>

具体可以参考以下链接:https://www.cnblogs.com/ll409546297/p/7815409.html

0 回复 有任何疑惑可以回复我~

就跟spring 使用一样,把配置文件*.xml ,该springboot 中的注解应该是这样

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

Springboot 使用shiro

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信