zjs hace 1 semana
padre
commit
70353f86a5

+ 1 - 0
src/main/java/com/cn/esermis/EsermisApplication.java

@@ -27,6 +27,7 @@ public class EsermisApplication  implements CommandLineRunner {
27 27
          * 使用异步注解方式启动netty服务端服务
28 28
          */
29 29
         new BootNettyServer().bind(19900);
30
+//        new BootNettyServer().bind(8088);
30 31
     }
31 32
 
32 33
 }

+ 1 - 1
src/main/java/com/cn/esermis/dpld/business/MonitorBusiness.java

@@ -345,7 +345,7 @@ public class MonitorBusiness {
345 345
                 }
346 346
             }
347 347
         } catch (Exception e) {
348
-            throw new RuntimeException(e);
348
+//            throw new RuntimeException(e);
349 349
 //            log.error("插入数据库异常:"+e);
350 350
         }
351 351
     }

+ 3 - 3
src/main/resources/application.yml

@@ -21,8 +21,8 @@ spring:
21 21
       datasource:
22 22
         master:
23 23
           driver-class-name: com.mysql.cj.jdbc.Driver
24
-#          url: jdbc:mysql://39.105.121.97:13306/scy?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false
25
-          url: jdbc:mysql://192.168.3.19:13306/scy?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false
24
+          url: jdbc:mysql://39.105.121.97:13306/scy?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false
25
+#          url: jdbc:mysql://192.168.3.19:13306/scy?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false
26 26
           username: root
27 27
 #          password: Eitc@gnhz702
28 28
           password: Eitc@gnhz702
@@ -32,7 +32,7 @@ spring:
32 32
     timeout: 30000 # 连接超时时间(毫秒)
33 33
     jedis:
34 34
       pool:
35
-        max-idle: 8 # 连接池中的最大空闲连接=8
35
+        max-idle: 2 # 连接池中的最大空闲连接=8
36 36
         min-idle: 0
37 37
         max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
38 38
         max-active: 8 # 连接池最大连接数(使用负值表示没有限制)