Преглед на файлове

防止重复数据 入队列

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