Procházet zdrojové kódy

修改配置信息和多适配器切换

shilin před 2 roky
rodič
revize
4f9bcc58dd

+ 4 - 4
web/consumer-hb/src/main/java/com/gyee/consumer/controller/health/HealthController.java

@@ -81,7 +81,7 @@ public class HealthController {
     })
     public AjaxResult findWtHealthInfo(@RequestParam("wtId") String wtId) throws Exception  {
 
-        AjaxResult ajax=healthMainService.findHealthMatrixMap();
+        AjaxResult ajax=healthMainService.findWtHealthInfo(wtId);
 
         return ajax;
     }
@@ -94,7 +94,7 @@ public class HealthController {
     })
     public AjaxResult findWtHealthInfo1(@RequestParam("wtId") String wtId) throws Exception  {
 
-        AjaxResult ajax=healthMainService.findHealthMatrixMap();
+        AjaxResult ajax=healthMainService.findWtHealthInfo1(wtId);
 
         return ajax;
     }
@@ -108,7 +108,7 @@ public class HealthController {
     })
     public AjaxResult findWtHealthInfo2(@RequestParam("wtId") String wtId) throws Exception  {
 
-        AjaxResult ajax=healthMainService.findHealthMatrixMap();
+        AjaxResult ajax=healthMainService.findWtHealthInfo2(wtId);
 
         return ajax;
     }
@@ -122,7 +122,7 @@ public class HealthController {
     })
     public AjaxResult findWtHealthInfo3(@RequestParam("wtId") String wtId) throws Exception  {
 
-        AjaxResult ajax=healthMainService.findHealthMatrixMap();
+        AjaxResult ajax=healthMainService.findWtHealthInfo3(wtId);
 
         return ajax;
     }

+ 8 - 8
web/consumer-hb/src/main/resources/application-hf.yml

@@ -1,7 +1,7 @@
 # 项目相关配置
 gyee:
   #API访问ip
-  swaggerip: 10.0.118.76:8170
+  swaggerip: 192.168.56.1:8170
 server:
   port: 8170
 
@@ -10,7 +10,7 @@ spring:
     name: monitor-web-hb-consumer
     nacos:
       discovery:
-        server-addr: 10.0.118.76:8848
+        server-addr: 192.168.56.1:8848
         #指定yaml格式的配置
         file-extension: yaml
         cluster-name: master
@@ -36,7 +36,7 @@ spring:
         min-idle: 0
         max-idle: 8
         max-wait: -1
-    database: 0
+    database: 1
   autoconfigure:
     exclude: org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration
   datasource:
@@ -103,11 +103,11 @@ feign:
         read-timeout: 60000
         connect-timeout: 60000
 provider:
-  monitorurl: http://10.0.118.76:8171/
-  healthurl: http://10.0.118.76:8172/
-  analysisurl: http://10.0.118.76:8173/
-  adminurl: http://10.0.118.76:8174/
-  alarmurl: http://10.0.118.76:8176/
+  monitorurl: http://192.168.56.1:8171/
+  healthurl: http://192.168.56.1:8172/
+  analysisurl: http://192.168.56.1:8173/
+  adminurl: http://192.168.56.1:8174/
+  alarmurl: http://192.168.56.1:8176/
 
 management:
   endpoints:

+ 4 - 4
web/consumer-hb/src/main/resources/application-hwy.yml

@@ -105,10 +105,10 @@ feign:
 provider:
 
   monitorurl: http://192.168.56.1:8171/
-  healthurl: http://192.168.56.1:8171/
-  analysisurl: http://192.168.56.1:8171/
-  adminurl: http://192.168.56.1:8171/
-  alarmurl: http://192.168.56.1:8171/
+  healthurl: http://192.168.56.1:8172/
+  analysisurl: http://192.168.56.1:8173/
+  adminurl: http://192.168.56.1:8174/
+  alarmurl: http://192.168.56.1:8176/
 management:
   endpoints:
     jmx:

+ 1 - 1
web/consumer-hb/src/main/resources/application.yml

@@ -1,4 +1,4 @@
 spring:
   profiles:
-    active: hb
+    active: hf
 #    active: jn