我收到以下错误
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'preTransactionHandlerPool' defined in class com.fg.transbridge.processor.spring.ContextConfiguration: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException
我已经有preTransactionHandlerPool
豆子了。
@Bean(name = "preTransactionHandlerPool")
public ThreadPoolTaskExecutor preTransactionHandlerPool() {
LOGGER.info("Initializing preTransactionHandlerPool");
ThreadPoolTaskExecutor threadPoolTaskExecutor = new ThreadPoolTaskExecutor();
threadPoolTaskExecutor.setCorePoolSize(preTransCorePoolSize);
threadPoolTaskExecutor.setMaxPoolSize(preTransMaxPoolSize);
threadPoolTaskExecutor.setWaitForTasksToCompleteOnShutdown(preWaitForCompleteShutDown);
LOGGER.debug("Initiated preTransactionHandlerPool");
return threadPoolTaskExecutor;
}
这可能是什么原因?非常感谢您的帮助。
谢谢你