Browse Source

禁止使用Executors

zhijiezhao 2 years ago
parent
commit
df4691b786

+ 3 - 0
src/main/java/com/caimei365/user/service/impl/LoginServiceImpl.java

@@ -506,6 +506,9 @@ public class LoginServiceImpl implements LoginService {
         Long h = (date.getTime() - date.getTime());
         //这里如果当前时间大于下午三点会出现负数所以就不推送
         if (h > 0) {
+            /**
+             * 禁止使用Executors
+             */
             ScheduledExecutorService executorService = Executors.newSingleThreadScheduledExecutor();
             executorService.schedule(new Runnable() {
                 @SneakyThrows