- 引入依赖
<!--引入shiro整合springboot的依赖-->
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-spring-boot-starter</artifactId>
<version>1.7.1</version>
</dependency>
- 创建shiro配置类
package com.dxp.springboot_shiro.config;
import com.dxp.springboot_shiro