这段说的是啥


#1

MapperScan(“com.seal.cfa.dao”)
EnableScheduling
EnableCaching
EnableAsync
SpringBootApplication
上面这些前面有@
class MyApplication {

@Bean(name = ["threadPoolTaskExecutor"])
fun threadPoolTaskExecutor(): Executor {
    return ThreadPoolTaskExecutor()
}

}

fun main(args: Array) {
SpringApplication.run(MyApplication::class.java, *args)
}


京ICP备16022265号-2 Kotlin China 2017 - 2018