-
2023.11.18 ThreadPoolTaskExecutorTIL 2023. 11. 18. 20:32
spring에서 custom taskExector를 정의했다면 자체 생성되던 taskExector를 생성하지 않는다.
기본으로 생성해 주는 것과 내가 생성한 것을 둘 다 사용하고 싶을 경우 TaskExecutorBuilder를 통해 기본 설정을 사용하는 taskExector를 명시적으로 생성해서 사용하면 된다.
Core Features
Spring Boot uses Commons Logging for all internal logging but leaves the underlying log implementation open. Default configurations are provided for Java Util Logging, Log4j2, and Logback. In each case, loggers are pre-configured to use console output with
docs.spring.io
How to create additional TaskExecutor beside TaskExecutionAutoConfiguration?
I want spring to load the default ThreadPoolTaskExecutor from TaskExecutionAutoConfiguration. Though I want to provide may own additional executor for some explicit side-tasks: @Bean public
stackoverflow.com
Spring ThreadPoolTaskExecutor 설정
ThreadPoolTaskExecutor는 이름에서 알 수 있듯이 스레드 풀을 사용하는 Executor입니다. 상위 인터페이스를 확인해 보면 java.util.concurrent.Executor를 Spring에서 구현한 것을 확인할 수 있습니다. 이 스레드
kapentaz.github.io
'TIL' 카테고리의 다른 글
2023.11.27 shedlock (0) 2023.11.27 2023.11.19 제3정규화 (0) 2023.11.19 2023.11.05 applicationrunner (0) 2023.11.04 2023.11.04 Spring Security Propagation (0) 2023.11.04 2023.11.02 JVM 메모리 구조 (0) 2023.11.02