1、pom引入 shiro-core 和 shiro-spring(引入shiro-spring即可)
<!-- 集成shiro --> <!--<dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-core</artifactId> <version>1.3.2</version> </dependency>--> <dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-spring</artifactId> <version>1.3.2</version> </dependency> |
2、web.xml 添加 ShiroFilter
|