From 55381fc907df049bcec338cd279a19640a8e5864 Mon Sep 17 00:00:00 2001
From: wuyouming666 <2265557248@qq.com>
Date: 星期六, 11 五月 2024 08:31:41 +0800
Subject: [PATCH] 修改交互页面权限

---
 springboot-vue3/src/main/java/com/example/springboot/component/PlcHold.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/PlcHold.java b/springboot-vue3/src/main/java/com/example/springboot/component/PlcHold.java
index 7773370..1fc3c55 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/component/PlcHold.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/component/PlcHold.java
@@ -23,16 +23,16 @@
 
   @Override
   public void run() {
-    spianService = WebSocketServer.applicationContext.getBean(SpianService.class);
-      spianMapper = WebSocketServer.applicationContext.getBean(SpianMapper.class);
-      
-      jdbcConnections = WebSocketServer.applicationContext.getBean(JdbcConnections.class);
+
     while (this != null) {
       try {
         spianService.result=new ArrayList<>();
         Thread.sleep(300);
         // if (S7control.getinstance().CheckConnected() == false) {
+      spianService = WebSocketServer.applicationContext.getBean(SpianService.class);
+      spianMapper = WebSocketServer.applicationContext.getBean(SpianMapper.class);
       
+      jdbcConnections = WebSocketServer.applicationContext.getBean(JdbcConnections.class);
       // 鏍规嵁鐜荤拑id鑾峰彇璁㈠崟鍙�,鍗曠嫭鏁版嵁婧�
       
       // try {

--
Gitblit v1.8.0