mirror of https://github.com/longtai-cn/hippo4j
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.
26 lines
568 B
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();
|
|
}
|
|
}
|