Giter Club home page Giter Club logo

license's Introduction

license设计概要

  • server工程负责授权文件的生成。部署在公司内部
  • client工程负责实现授权的校验。部署在客户的物理机器上
  • checker上一个jar包类型的插件。用来提供向client发送验证请求

lincense-server

负责license.lic 文件生成。文件地址在application.properties可配置 调用接口 {ip}/license/generateLicense

lincense-client

  1. 提供了 {ip}/main 界面.提供授权信息查看.提供导入替换license功能.
  2. 提供了 {ip}/license/check 接口提供授权信息校验及查询
  • 压测结果约3w kps.完全满足校验需求.

lincenseCheck

主要提供license校验.

1.要在启动类上加上注解,com.orcadt.license为license包

@SpringBootApplication(scanBasePackages = {"com.orcadt.license","com.orcadt.iot"})

2.需要在配置文件内添加

license.check.url=http://{ip}/license/check

3.在项目内部获取授权信息 直接调用 LicenseAuthHolder.authModels 即可

    @GetMapping("test")
    public Object getLicenseResult(){
     return LicenseAuthHolder.authModels;
    }

4.可参考 license-demo工程

license's People

Contributors

huangjie84 avatar

Stargazers

 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.