Skip to content

jianzhichun/swagger2-spring-boot-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: xxx@xxx.com

enjoy

About

spring-boot-starter-swagger2

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages