Browse Source

防止重复数据 入队列

zjs 3 days ago
parent
commit
c179534392

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

@@ -23,6 +23,7 @@ import java.net.InetSocketAddress;
23
 import java.util.Date;
23
 import java.util.Date;
24
 import java.util.HashMap;
24
 import java.util.HashMap;
25
 import java.util.Map;
25
 import java.util.Map;
26
+import java.util.concurrent.TimeUnit;
26
 
27
 
27
 @Log4j2
28
 @Log4j2
28
 @Component
29
 @Component

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

@@ -35,7 +35,7 @@ spring:
35
       scy:
35
       scy:
36
         #下边这些都是老套路了
36
         #下边这些都是老套路了
37
         driver-class-name: com.mysql.cj.jdbc.Driver
37
         driver-class-name: com.mysql.cj.jdbc.Driver
38
-        jdbc-url: jdbc:mysql://192.168.3.19:3366/scy?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false
38
+        jdbc-url: jdbc:mysql://192.168.3.19:3366/scy?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
39
 #        jdbc-url: jdbc:mysql://39.105.121.97:13306/scy?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false
39
 #        jdbc-url: jdbc:mysql://39.105.121.97:13306/scy?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false
40
         password: Eitc@gnhz702
40
         password: Eitc@gnhz702
41
         type: com.zaxxer.hikari.HikariDataSource
41
         type: com.zaxxer.hikari.HikariDataSource