Giter Club home page Giter Club logo

spring-boot-starter-shiro-biz's Introduction

spring-boot-starter-shiro-biz

shiro starter for spring boot

说明

基于 Shiro 的 Spring Boot Starter 实现

  1. Apache Shiro是一个强大且易用的Java安全框架,执行身份验证、授权、密码学和会话管理。使用Shiro的易于理解的API,您可以快速、轻松地获得任何应用程序,从最小的移动应用程序到最大的网络和企业应用程序。
  2. spring-boot-starter-shiro-biz 是在引用 shiro-spring-boot-startershiro-spring-boot-web-starter 的基础上整合 shiro-biz 的 Spring Boot 整合;
  3. 完成了基于Shiro的权限的控制

Maven

<dependency>
	<groupId>${project.groupId}</groupId>
	<artifactId>spring-boot-starter-shiro-biz</artifactId>
	<version>${project.version}</version>
</dependency>

配置参考

application.yml

################################################################################################################  
###Shiro 权限控制基本配置:  
################################################################################################################
shiro:
  enabled: true
  validate-captcha: false
  login-url: /authz/login
  redirect-url: /authz/index
  success-url: /index
  unauthorized-url: /error
  failure-url: /error
  annotations: 
    enabled: true
  web: 
    enabled: true
  filter-chain-definition-map: 
    / : anon
    /*favicon.ico : anon
    /webjars/** : anon
    /assets/** : anon
    /html/** : anon
    /error* : anon
    /logo/** : anon
    /kaptcha* : anon
    /sockets/** : anon
    /logout : logout
    /index : sessionExpired,sessionControl,authc
    /** : sessionExpired,sessionControl,authc

Sample

https://github.com/vindell/spring-boot-starter-samples/tree/master/spring-boot-sample-shiro-biz

参考资料

http://shiro.apache.org/documentation.html

http://jinnianshilongnian.iteye.com/blog/2018398

spring-boot-starter-shiro-biz's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.