SimbotDispatcherConfigurer
用于在 starter 中配置 SpringEventDispatcherConfiguration, 默认情况下注册到 spring 中生效,可注册多个。
Kotlin example:
@Component
class MySimbotDispatcherConfigurer : SimbotDispatcherConfigurer {
// impl...
}
Content copied to clipboard
@Configuration
open class MySimbotDispatcherConfiguration {
@Bean
open fun myDispatcherConfigurer(): SimbotDispatcherConfigurer = ...
}
Content copied to clipboard
Java example:
@Component
public class MySimbotDispatcherConfigurer implements SimbotDispatcherConfigurer {
// impl...
}
Content copied to clipboard
@Configuration
public class MySimbotDispatcherConfiguration {
@Bean
public SimbotDispatcherConfigurer myDispatcherConfigurer() {
return ...
}
}
Content copied to clipboard
Author
ForteScarlet
Functions
Link copied to clipboard
配置 configuration.