springboot+shiro授权认证

1、shiro核心API

Subject:用户主体(把操作交给SecurityManager)

SecurityManager:安全管理器(关联Realm)

Realm:Shiro连接数据的桥梁

2、Shiro与spring的pom依赖:

<dependency>
            <groupId>org.apache.shiro</groupId>
            <artifactId>shiro-core</artifactId>
            <version>1.4.0</version>
 </dependency>

3、 thymeleaf对shiro的扩展坐标pom依赖:

<!-- thymeleaf对shiro的扩展坐标 -->
        <dependency>
            <groupId>com.github.theborakompanioni</groupId>
            <artifactId>thymeleaf-extras-shiro</artifactId>
            <version>2.0.0</version>
        </dependency>

项目路径:https://github.com/Linece/springboot-shiro

猜你喜欢

转载自blog.csdn.net/u014450465/article/details/86597043