From e8f9bb54b84583f1c0df845b4e04db278de35337 Mon Sep 17 00:00:00 2001 From: toesbieya <1647775459@qq.com> Date: Tue, 29 Dec 2020 20:22:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E8=AF=B4=E6=80=8E=E4=B9=88=E6=B2=A1?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/cn/toesbieya/jxc/aspect/UserActionAspect.java | 2 ++ .../src/main/java/cn/toesbieya/jxc/config/ExecutorConfig.java | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/java/local/src/main/java/cn/toesbieya/jxc/aspect/UserActionAspect.java b/java/local/src/main/java/cn/toesbieya/jxc/aspect/UserActionAspect.java index dabfb81..fcb586a 100644 --- a/java/local/src/main/java/cn/toesbieya/jxc/aspect/UserActionAspect.java +++ b/java/local/src/main/java/cn/toesbieya/jxc/aspect/UserActionAspect.java @@ -63,6 +63,8 @@ public class UserActionAspect { action.setError(result.getMsg()); } + service.insertUserAction(action); + return result; } } diff --git a/java/local/src/main/java/cn/toesbieya/jxc/config/ExecutorConfig.java b/java/local/src/main/java/cn/toesbieya/jxc/config/ExecutorConfig.java index fc5fadc..12ec886 100644 --- a/java/local/src/main/java/cn/toesbieya/jxc/config/ExecutorConfig.java +++ b/java/local/src/main/java/cn/toesbieya/jxc/config/ExecutorConfig.java @@ -28,13 +28,13 @@ public class ExecutorConfig implements AsyncConfigurer { public Executor scheduledExecutor() { ThreadPoolTaskExecutor threadPoolTaskExecutor = new ThreadPoolTaskExecutor(); //核心线程数 - threadPoolTaskExecutor.setCorePoolSize(2); + threadPoolTaskExecutor.setCorePoolSize(1); //是否回收空闲线程 threadPoolTaskExecutor.setAllowCoreThreadTimeOut(true); //最大线程数 threadPoolTaskExecutor.setMaxPoolSize(5); //配置等待队列大小 - threadPoolTaskExecutor.setQueueCapacity(2); + threadPoolTaskExecutor.setQueueCapacity(10); //配置线程池前缀 threadPoolTaskExecutor.setThreadNamePrefix("scheduled-"); //拒绝策略