Giter VIP home page Giter VIP logo

spring-cloud-see's Introduction

Spring Cloud See

Maven Central

Spring Cloud See包含两个模块:

  • See Auth: 认证鉴权模块
  • See Swagger: 对Swagger进行封装

Spring Cloud See Auth

See Auth模块, 基于Spring自动装配机制开发.

配置

see:
  auth:
    enabled: true         # 启用认证功能
    auth-filter-order: 3  # 默认为`3`. 此设置可改变zuul filter链中的filter的排序先后, 数值越小越靠前, 先执行. 注意: 此设置必须放在限流filter之后, 鉴权filter之前
    permission-filter-order: 4  # 默认为`4`. 注意: 此设置必须放在认证filter之后
    ignored-patterns:     # 忽略认证的URL
      POST:               # 请求方式 (POST)
      - /users/token
      GET:                # 请求方式 (GET)
      - /swagger-ui.html
      - /v2/api-docs

TODO

  • 认证功能
  • 鉴权功能

Spring Cloud See Swagger

See Swagger模块, 基于Spring自动装配机制开发.

配置

see:
  swagger:
    enabled: true           # 是否启用
    exclude-services:       # 排除服务列表
      - eureka
      - zuul
      - gateway
    version: "2.0"          # 版本, 默认"2.0", 可忽略
    prefix: ${zuul.prefix}  # 与`zuul.prefix`配置一致, ${zuul.prefix}
    url: /v2/api-docs       # url, 默认"/v2/api-docs", 可忽略

Deploy

mvn clean install deploy -P release -Dgpg.passphrase=生成秘钥时候你的密码

spring-cloud-see's People

Contributors

dependabot[bot] avatar kimmy-wang avatar

Watchers

 avatar  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.