mirror of https://github.com/longtai-cn/hippo4j
parent
2d4c0e19c0
commit
05557ddbf9
@ -0,0 +1,23 @@
|
||||
package io.dynamic.threadpool.starter.enable;
|
||||
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* 动态线程池标记配置类
|
||||
*
|
||||
* @author chen.ma
|
||||
* @date 2021/7/8 23:30
|
||||
*/
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
public class DynamicThreadPoolMarkerConfiguration {
|
||||
|
||||
@Bean
|
||||
public Marker dynamicThreadPoolMarkerBean() {
|
||||
return new Marker();
|
||||
}
|
||||
|
||||
public class Marker {
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package io.dynamic.threadpool.starter.enable;
|
||||
|
||||
import org.springframework.context.annotation.Import;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
/**
|
||||
* Annotation to activate Dynamic ThreadPool related configuration.
|
||||
*
|
||||
* @author chen.ma
|
||||
* @date 2021/7/8 23:28
|
||||
*/
|
||||
@Target(ElementType.TYPE)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
@Import(DynamicThreadPoolMarkerConfiguration.class)
|
||||
public @interface EnableDynamicThreadPool {
|
||||
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=io.dynamic.threadpool.common.config.CommonConfiguration, \
|
||||
io.dynamic.threadpool.starter.config.OkHttpClientConfig,\
|
||||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
||||
io.dynamic.threadpool.starter.config.DynamicThreadPoolAutoConfiguration
|
Loading…
Reference in new issue