소스 검색

防止重复数据 入队列

zjs 3 일 전
부모
커밋
c179534392
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      src/main/java/com/cn/esermis/netty/BootNettyChannelInboundHandlerAdapter.java
  2. 1 1
      src/main/resources/application.yml

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

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

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

@@ -35,7 +35,7 @@ spring:
35 35
       scy:
36 36
         #下边这些都是老套路了
37 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 39
 #        jdbc-url: jdbc:mysql://39.105.121.97:13306/scy?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false
40 40
         password: Eitc@gnhz702
41 41
         type: com.zaxxer.hikari.HikariDataSource