Browse Source

修改swagger地址

hanqingsong 2 years ago
parent
commit
fc5c44c8b3
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/main/java/com/chinaitop/depot/SwaggerConfig.java

+ 4 - 4
src/main/java/com/chinaitop/depot/SwaggerConfig.java

@@ -17,10 +17,10 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
17 17
 public class SwaggerConfig {
18 18
 	
19 19
 	//@Value("${eureka.instance.hostname}")
20
-	private String eureka_id;
20
+//	private String eureka_id;
21 21
 	
22 22
 	//@Value("${server.port}")
23
-	private String server_port;
23
+//	private String server_port;
24 24
 
25 25
     @Bean
26 26
     public Docket createRestApi() {
@@ -32,11 +32,11 @@ public class SwaggerConfig {
32 32
                 .build();
33 33
     }
34 34
     private ApiInfo apiInfo() {
35
-    	String url = "http://"+eureka_id+":"+server_port;
35
+//    	String url = "http://"+eureka_id+":"+server_port;
36 36
         return new ApiInfoBuilder()
37 37
                 .title("智能粮库管理平台api文档")
38 38
                 .description("系统管理")
39
-                .termsOfServiceUrl(url.trim())
39
+                .termsOfServiceUrl("http://172.16.0.46:9023")
40 40
                 .version("1.0")
41 41
                 .build();
42 42
     }