swagger2-spring-boot-starter

swagger2-spring-boot-starter used to auto-configure swagger2 in spring boot project

License

License

Categories

Categories

Spring Boot Container Microservices Swagger Program Interface REST Frameworks
GroupId

GroupId

io.github.jianzhichun
ArtifactId

ArtifactId

swagger2-spring-boot-starter
Last Version

Last Version

0.1.2
Release Date

Release Date

Type

Type

jar
Description

Description

swagger2-spring-boot-starter
swagger2-spring-boot-starter used to auto-configure swagger2 in spring boot project
Project URL

Project URL

https://github.com/jianzhichun/swagger2-spring-boot-starter
Source Code Management

Source Code Management

https://github.com/jianzhichun/swagger2-spring-boot-starter

Download swagger2-spring-boot-starter

How to add to project

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

Dependencies

compile (3)

Group / Artifact Type Version
io.springfox : springfox-swagger2 jar 2.6.1
io.springfox : springfox-swagger-ui jar 2.6.1
org.springframework.boot : spring-boot-starter jar

Project Modules

There are no modules declared in this project.

swagger2-spring-boot-starter

swagger2-spring-boot-starter used to auto-configure swagger2 in spring boot project

quick-start

add below dependencies to your pom

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
    <dependency>
        <groupId>io.github.jianzhichun</groupId>
        <artifactId>swagger2-spring-boot-starter</artifactId>
        <version>0.1.2</version>
    </dependency>

add configuration to your application.yml

auto:
  swagger2:
    env: qa, uat
    host: http://localhost:8080
    enable: true
    basePackage: com
    paths:
      or: 
        - /.*
      not:
        - /error 
    apiInfo:
      version: 2.0
      title: test
      description: haha
      termsOfServiceUrl: url:test
      contact:
        name: heihei
        url: url:test
        email: [email protected]

enjoy

Versions

Version
0.1.2
0.1.1
0.1.0
0.0.1