GithubHelp home page GithubHelp logo

luck-permission-spring-boot-starter's Introduction

LuckPermission

介绍

简单的springboot权限校验 您只需要引入此包,然后配置文件中指定controller包名,并且在Mapping注解上使用@LuckVerify注解即可,它会根据您当前Mapping的method进行权限比较。

软件架构

springboot、反射

安装教程

在项目application配置中加入以下内容

luck-permission:
# packages 是包名,可扫数组
  packages: com.hbucvc.demo.controller
# verify-interceptors 是拦截器,可多个拦截器,若不指定则默认进入LuckPermission提供的默认DefaultVerifyInterceptor拦截器
  verify-interceptors: com.hbucvc.demo.config.interceptors.MyLucVertify

使用说明

如果要自己定义一个拦截器很简单! 只需要实现VerifyInterceptor接口,并且在配置项中的luck-permission.verify-interceptors内添加类路径即可!

luck-permission-spring-boot-starter's People

Contributors

liuscraft avatar

Watchers

 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.