24282 2 лет назад
Родитель
Сommit
c1d2014d87

+ 2 - 2
src/main/java/com/fjhx/service/impl/AccountServiceImpl.java

@@ -154,7 +154,7 @@ public class AccountServiceImpl implements IAccountService, ServletContextAware
         }
 
         ThreadUtil.sleep(60 * 1000);
-        this.syncMessageContent();
+        new Thread(this::syncMessageContent).start();
     }
 
     private void syncMessageAttachment() {
@@ -210,7 +210,7 @@ public class AccountServiceImpl implements IAccountService, ServletContextAware
         }
 
         ThreadUtil.sleep(60 * 1000);
-        this.syncMessageAttachment();
+        new Thread(this::syncMessageAttachment).start();
     }
 
 

+ 5 - 5
src/main/resources/application-dev.yml

@@ -1,13 +1,13 @@
 server:
-  port: 8888
+  port: 9998
 
 # 数据源配置
 spring:
   datasource:
     driver-class-name: com.mysql.cj.jdbc.Driver
-    url: jdbc:mysql://36.134.91.96:17330/service_email?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
-    username: fjhx2012mysql
-    password: 3PN-Mzn#vnP&q6d
+    url: jdbc:mysql://139.9.184.42:3306/bladex_email?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&allowMultiQueries=true&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true
+    username: root
+    password: Fjhx@pwd123
 
   redis:
     # 地址
@@ -24,5 +24,5 @@ mybatis-plus:
     log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
 
 config:
-  urlPrefix: http://localhost:3000/
+  urlPrefix: http://139.9.184.42:3000/
   attachmentPath: D:\24282\Downloads\

+ 0 - 0
src/main/resources/application-pro.yml → src/main/resources/application-prod.yml