EnableSimbot
@Import(value = [SimbotSpringPropertiesConfiguration::class, DefaultSimbotApplicationConfigurationProcessorConfiguration::class, DefaultSimbotDispatcherProcessorConfiguration::class, DefaultSimbotComponentInstallProcessorConfiguration::class, DefaultSimbotPluginInstallProcessorConfiguration::class, DefaultSimbotEventDispatcherProcessorConfiguration::class, DefaultBinderManagerProvidersConfiguration::class, DefaultSimbotEventListenerRegistrarProcessorConfiguration::class, DefaultSimbotSpringApplicationLauncherFactoryConfiguration::class, DefaultSimbotApplicationLauncherFactoryProcessorConfiguration::class, SimbotApplicationConfiguration::class, DefaultSimbotSpringApplicationProcessorConfiguration::class, ResolveBinderManagerProcessor::class, SimbotEventListenerFunctionProcessor::class, SimbotApplicationRunner::class] )
启用 simbot 的各项配置。
将其标记在你的启动类或某个配置类上。
Kotlin
@EnableSimbot
@SpringBootApplication
open class MyApplication {
// ...
}
Content copied to clipboard
@EnableSimbot
@Configuration
open class MyConfig {
// ...
}
Content copied to clipboard
Java
@EnableSimbot
@SpringBootApplication
public class MyApplication {
// ...
}
Content copied to clipboard
@EnableSimbot
@Configuration
public class MyConfig {
// ...
}
Content copied to clipboard