我说怎么没操作记录

master
toesbieya 6 years ago
parent 8a1d74c350
commit e8f9bb54b8
  1. 2
      java/local/src/main/java/cn/toesbieya/jxc/aspect/UserActionAspect.java
  2. 4
      java/local/src/main/java/cn/toesbieya/jxc/config/ExecutorConfig.java

@ -63,6 +63,8 @@ public class UserActionAspect {
action.setError(result.getMsg()); action.setError(result.getMsg());
} }
service.insertUserAction(action);
return result; return result;
} }
} }

@ -28,13 +28,13 @@ public class ExecutorConfig implements AsyncConfigurer {
public Executor scheduledExecutor() { public Executor scheduledExecutor() {
ThreadPoolTaskExecutor threadPoolTaskExecutor = new ThreadPoolTaskExecutor(); ThreadPoolTaskExecutor threadPoolTaskExecutor = new ThreadPoolTaskExecutor();
//核心线程数 //核心线程数
threadPoolTaskExecutor.setCorePoolSize(2); threadPoolTaskExecutor.setCorePoolSize(1);
//是否回收空闲线程 //是否回收空闲线程
threadPoolTaskExecutor.setAllowCoreThreadTimeOut(true); threadPoolTaskExecutor.setAllowCoreThreadTimeOut(true);
//最大线程数 //最大线程数
threadPoolTaskExecutor.setMaxPoolSize(5); threadPoolTaskExecutor.setMaxPoolSize(5);
//配置等待队列大小 //配置等待队列大小
threadPoolTaskExecutor.setQueueCapacity(2); threadPoolTaskExecutor.setQueueCapacity(10);
//配置线程池前缀 //配置线程池前缀
threadPoolTaskExecutor.setThreadNamePrefix("scheduled-"); threadPoolTaskExecutor.setThreadNamePrefix("scheduled-");
//拒绝策略 //拒绝策略

Loading…
Cancel
Save