You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hippo4j/dtp-spring-boot-starter/src/main/java/io/dtp/starter/config/CommonConfiguration.java

26 lines
568 B

package io.dtp.starter.config;
import io.dtp.starter.core.ThreadPoolRunListener;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* 公共配置
*
* @author chen.ma
* @date 2021/6/20 18:52
*/
@Configuration
public class CommonConfiguration {
@Bean
public ApplicationContextHolder applicationContextHolder() {
return new ApplicationContextHolder();
}
@Bean
public ThreadPoolRunListener threadPoolRunListener() {
return new ThreadPoolRunListener();
}
}