Browse Source

修改配制

shengyang000 3 years ago
parent
commit
d15afb8f1b

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

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

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

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