fanxw 2 년 전
부모
커밋
271bcdf2d3
2개의 변경된 파일2개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 4
      src/main/java/com/chinaitop/SwaggerConfig.java
  2. 1 1
      src/main/resources/bootstrap.yml

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

@@ -18,9 +18,6 @@ public class SwaggerConfig {
18 18
 
19 19
 	@Value("${eureka.instance.hostname}")
20 20
 	private String eureka_id;
21
-	
22
-	@Value("${server.port}")
23
-	private String server_port;
24 21
 
25 22
     @Bean
26 23
     public Docket createRestApi() {
@@ -32,7 +29,7 @@ public class SwaggerConfig {
32 29
                 .build();
33 30
     }
34 31
     private ApiInfo apiInfo() {
35
-    	String url = "http://"+eureka_id+":"+server_port;
32
+    	String url = "http://"+eureka_id+":9001";
36 33
         return new ApiInfoBuilder()
37 34
                 .title("智能粮库管理平台api文档")
38 35
                 .description("基础数据")

+ 1 - 1
src/main/resources/bootstrap.yml

@@ -17,7 +17,7 @@ eureka:
17 17
     lease-renewal-interval-in-seconds: 10
18 18
     # 告知服务端30秒还未收到心跳的话,就将该服务移除列表(默认90s)
19 19
     lease-expiration-duration-in-seconds: 30
20
-    status-page-url: http://172.16.0.16:9022/swagger-ui.html
20
+    status-page-url-path: /swagger-ui.html
21 21
 
22 22
 mybatis:
23 23
   config-location: classpath:mybatis/mybatis-config.xml