Swagger2(生成在线接口文档)

2018-10-25  本文已影响0人  Puny丶微芒
<dependency>
  <groupId>com.spring4all</groupId>
  <artifactId>swagger-spring-boot-starter</artifactId>
  <version>1.8.0.RELEASE</vsersion>
</dependency>
@SpringBootApplication
@EnableSwagger2Doc
  public class SpringSwagger2Application{
    public static void main(String[] args){
      SpirngApplication.run(Springboot2Swagger2Application.class,args)
  }
}

默认访问地址 http://localhost:8080/swagger-ui.html

自定义UI界面

上一篇下一篇

猜你喜欢

热点阅读