Skip to content

Commit

Permalink
@async异步任务线程池配置拒绝策略
Browse files Browse the repository at this point in the history
  • Loading branch information
dyc87112 committed Sep 22, 2021
1 parent ddcb8cc commit 832f554
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
package com.didispace.chapter78;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.Executor;
import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;

@EnableAsync
@SpringBootApplication
Expand Down

0 comments on commit 832f554

Please sign in to comment.