launchSimpleApplication
inline suspend fun launchSimpleApplication(crossinline configurer: ApplicationFactoryConfigurer<SimpleApplicationBuilder, ApplicationEventRegistrar, SimpleEventDispatcherConfiguration>.() -> Unit = {}): SimpleApplication(source)
构建一个 SimpleApplication 并启动它。
val app = launchSimpleApplication {
// ...
}
Content copied to clipboard