spring-cloud-see-swagger

See project for Spring Boot

License

License

Categories

Categories

Swagger Program Interface REST Frameworks
GroupId

GroupId

com.upcwangying.cloud.see
ArtifactId

ArtifactId

spring-cloud-see-swagger
Last Version

Last Version

1.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

spring-cloud-see-swagger
See project for Spring Boot

Download spring-cloud-see-swagger

How to add to project

<!-- https://jarcasting.com/artifacts/com.upcwangying.cloud.see/spring-cloud-see-swagger/ -->
<dependency>
    <groupId>com.upcwangying.cloud.see</groupId>
    <artifactId>spring-cloud-see-swagger</artifactId>
    <version>1.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/com.upcwangying.cloud.see/spring-cloud-see-swagger/
implementation 'com.upcwangying.cloud.see:spring-cloud-see-swagger:1.0.3'
// https://jarcasting.com/artifacts/com.upcwangying.cloud.see/spring-cloud-see-swagger/
implementation ("com.upcwangying.cloud.see:spring-cloud-see-swagger:1.0.3")
'com.upcwangying.cloud.see:spring-cloud-see-swagger:jar:1.0.3'
<dependency org="com.upcwangying.cloud.see" name="spring-cloud-see-swagger" rev="1.0.3">
  <artifact name="spring-cloud-see-swagger" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.upcwangying.cloud.see', module='spring-cloud-see-swagger', version='1.0.3')
)
libraryDependencies += "com.upcwangying.cloud.see" % "spring-cloud-see-swagger" % "1.0.3"
[com.upcwangying.cloud.see/spring-cloud-see-swagger "1.0.3"]

Dependencies

compile (7)

Group / Artifact Type Version
com.upcwangying.cloud.see : spring-cloud-see-core jar
org.springframework.boot : spring-boot-starter jar 2.0.6.RELEASE
org.springframework.cloud : spring-cloud-starter-netflix-eureka-client jar
org.springframework.boot : spring-boot-configuration-processor Optional jar 2.0.6.RELEASE
com.google.guava : guava jar
com.spring4all : swagger-spring-boot-starter jar 1.9.0.RELEASE
org.projectlombok : lombok jar 1.16.22

test (1)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-test jar 2.0.6.RELEASE

Project Modules

There are no modules declared in this project.

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=生成秘钥时候你的密码
com.upcwangying.cloud.see

See

A simple and extensible enterprise microservice cloud platform

Versions

Version
1.0.3