From d1b1260f2c9f4ed66f8dc4072a032e56280633e5 Mon Sep 17 00:00:00 2001
From: ZengTao <2773468879@qq.com>
Date: 星期五, 23 二月 2024 11:25:36 +0800
Subject: [PATCH] 代码更新

---
 springboot-vue3/src/main/java/com/example/springboot/component/ModuleA.java       |    2 +-
 .vscode/launch.json                                                               |   14 ++++++++++++++
 springboot-vue3/src/main/resources/application.properties                         |    2 +-
 springboot-vue3/src/main/java/com/example/springboot/service/SpianServiceNew.java |    8 +++++---
 4 files changed, 21 insertions(+), 5 deletions(-)

diff --git a/.vscode/launch.json b/.vscode/launch.json
index 366044e..d7ce0e6 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -6,6 +6,20 @@
     "configurations": [
       {
         "type": "java",
+        "name": "ModuleA",
+        "request": "launch",
+        "mainClass": "com.example.springboot.component.ModuleA",
+        "projectName": "springboot-vue3"
+      },
+      {
+        "type": "java",
+        "name": "ModuleB",
+        "request": "launch",
+        "mainClass": "com.example.springboot.component.ModuleB",
+        "projectName": "springboot-vue3"
+      },
+      {
+        "type": "java",
         "name": "MyGenerator",
         "request": "launch",
         "mainClass": "MyGenerator",
diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/ModuleA.java b/springboot-vue3/src/main/java/com/example/springboot/component/ModuleA.java
index 5a3d2f9..3f2bca3 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/component/ModuleA.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/component/ModuleA.java
@@ -8,7 +8,7 @@
    public static void main(String[] argv) throws Exception {
         // 鍒涘缓杩炴帴宸ュ巶
         ConnectionFactory factory = new ConnectionFactory();
-        factory.setHost("localhost");
+        factory.setHost("10.153.19.150");
 
         try (Connection connection = factory.newConnection();
              //channel 鏄�氳繃 connection 鍒涘缓鐨勪竴涓� AMQP 淇¢亾瀵硅薄
diff --git a/springboot-vue3/src/main/java/com/example/springboot/service/SpianServiceNew.java b/springboot-vue3/src/main/java/com/example/springboot/service/SpianServiceNew.java
index 15942f2..9a47ea2 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/service/SpianServiceNew.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/service/SpianServiceNew.java
@@ -20,12 +20,14 @@
 public class SpianServiceNew {
     @Autowired
     private SpianMapper spianMapper;
-          //璇诲彇DB105鍖烘枃浠�
+      
+    // @GetMapping("/all")
+    public Short selectAll(String glassid) {
+
+            //璇诲彇DB105鍖烘枃浠�
       PlcParameterObject plcmes=PLCAutoMes.PlcMesObject;
       //璇�106
       PlcParameterObject plcread=PLCAutoMes.PlcReadObject;
-    // @GetMapping("/all")
-    public Short selectAll(String glassid) {
 
         int cage1 = 0;
         int cells;
diff --git a/springboot-vue3/src/main/resources/application.properties b/springboot-vue3/src/main/resources/application.properties
index 7ec3226..663e822 100644
--- a/springboot-vue3/src/main/resources/application.properties
+++ b/springboot-vue3/src/main/resources/application.properties
@@ -23,7 +23,7 @@
 spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
 spring.jackson.time-zone=GMT+8
 
-spring.rabbitmq.host=localhost
+spring.rabbitmq.host=10.153.19.150
 spring.rabbitmq.port=5672
 spring.rabbitmq.username=guest
 spring.rabbitmq.password=guest

--
Gitblit v1.8.0