swagger-doc-spring-boot-starter

开箱即用版swagger,无需任何配置直接引入既可配合SpringBoot使用

License

License

Categories

Categories

Spring Boot Container Microservices Swagger Program Interface REST Frameworks
GroupId

GroupId

io.github.yuegod.starter.swagger
ArtifactId

ArtifactId

swagger-doc-spring-boot-starter
Last Version

Last Version

2.9.2
Release Date

Release Date

Type

Type

jar
Description

Description

swagger-doc-spring-boot-starter
开箱即用版swagger,无需任何配置直接引入既可配合SpringBoot使用
Project URL

Project URL

https://github.com/YueGod/swagger-doc-spring-boot-starter
Source Code Management

Source Code Management

https://github.com/YueGod/swagger-doc-spring-boot-starter/tree/master

Download swagger-doc-spring-boot-starter

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.yuegod.starter.swagger/swagger-doc-spring-boot-starter/ -->
<dependency>
    <groupId>io.github.yuegod.starter.swagger</groupId>
    <artifactId>swagger-doc-spring-boot-starter</artifactId>
    <version>2.9.2</version>
</dependency>
// https://jarcasting.com/artifacts/io.github.yuegod.starter.swagger/swagger-doc-spring-boot-starter/
implementation 'io.github.yuegod.starter.swagger:swagger-doc-spring-boot-starter:2.9.2'
// https://jarcasting.com/artifacts/io.github.yuegod.starter.swagger/swagger-doc-spring-boot-starter/
implementation ("io.github.yuegod.starter.swagger:swagger-doc-spring-boot-starter:2.9.2")
'io.github.yuegod.starter.swagger:swagger-doc-spring-boot-starter:jar:2.9.2'
<dependency org="io.github.yuegod.starter.swagger" name="swagger-doc-spring-boot-starter" rev="2.9.2">
  <artifact name="swagger-doc-spring-boot-starter" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.github.yuegod.starter.swagger', module='swagger-doc-spring-boot-starter', version='2.9.2')
)
libraryDependencies += "io.github.yuegod.starter.swagger" % "swagger-doc-spring-boot-starter" % "2.9.2"
[io.github.yuegod.starter.swagger/swagger-doc-spring-boot-starter "2.9.2"]

Dependencies

compile (3)

Group / Artifact Type Version
org.springframework.boot : spring-boot-autoconfigure jar 2.1.10.RELEASE
io.springfox : springfox-swagger2 jar 2.9.2
io.springfox : springfox-swagger-ui jar 2.9.2

Project Modules

There are no modules declared in this project.

使用方法

1.引入包

    <dependencies>
        <dependency>
            <groupId>io.github.yuegod.starter.swagger</groupId>
            <artifactId>swagger-doc-spring-boot-starter</artifactId>
            <version>2.9.2</version>
        </dependency>
    </dependencies>

2.配置文件属性。 注意,以下配置不是必须。Swagger2Doc默认是开启状态

//API标题
qzw.swagger2.doc.title=Demo Api
//API作何
qzw.swagger2.doc.another=quziwei
//API描述
qzw.swagger2.doc.description=Demo Project
//APi版本
qzw.swagger2.doc.version=1.0
//链接
qzw.swagger2.doc.termsOfServiceUrl=https://gitee.com/YueGod/
//是否开启
qzw.swagger2.doc.enable=true
//需要扫描的包路径
qzw.swagger2.doc.scanPackage=com

Versions

Version
2.9.2