swagger 配置

This commit is contained in:
zhouxiunai
2018-12-03 12:03:02 +08:00
parent 5aa4342cd2
commit 8796d47d19
2 changed files with 12 additions and 2 deletions
@@ -1,5 +1,6 @@
package com.gzzn.omms.msgexchangeapi.config.swagger;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@@ -15,6 +16,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
@EnableSwagger2
public class SwaggerConfig {
@Bean
public Docket api() {
return new Docket(DocumentationType.SWAGGER_2)
@@ -23,7 +25,7 @@ public class SwaggerConfig {
.paths(PathSelectors.any())
.build()
.apiInfo(apiInfo())
.host("localhost:8080")
.host("130.120.3.231:91/msgexchangeapi/")
;
}