shengyang000 hace 3 años
padre
commit
d15afb8f1b

+ 1 - 1
src/main/java/com/unissoft/Swagger2Config.java

@@ -31,7 +31,7 @@ public class Swagger2Config {
31 31
     @Bean
32 32
     public Docket createRestApi() {
33 33
         return new Docket(DocumentationType.SWAGGER_2)
34
-//                .host(swaggerHost)
34
+                .host(swaggerHost)
35 35
                 .apiInfo(apiInfo())
36 36
                 .select()
37 37
                 .apis(RequestHandlerSelectors.basePackage("com.unissoft.controller"))

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

@@ -3,16 +3,15 @@ server:
3 3
   port: 9609
4 4
 eureka:
5 5
   instance:
6
-#    hostname: 172.16.0.2 #地址
7 6
     hostname: 172.16.0.6 #地址
8 7
     prefer-ip-address: true
9
-#    status-page-url: http://${eureka.instance.hostname}:${server.port}/swagger-ui.html
8
+    status-page-url: http://${eureka.instance.hostname}:${server.port}/swagger-ui.html
10 9
   client:
11 10
     service-url:
12 11
       # 向注册中心注册服务
13 12
       defaultZone: http://admin:admin@${eureka.instance.hostname}:9600/eureka
14 13
 swagger:
15
-  host: 101.36.160.140:21021/api
14
+  host: 172.16.0.6
16 15
 
17 16
 spring:
18 17
   application:
@@ -24,5 +23,6 @@ spring:
24 23
         service-id: csc-szls-config  # 注册中心的服务名
25 24
       profile: dev  # 指定配置文件的环境
26 25
       label: develop # 分支 master
27
-
28
-ymllocation: csc-szls-message-inner
26
+  devtools:
27
+    restart:
28
+      log-condition-evaluation-delta: false