Newer
Older
sample-kotlin-spring+mybatis / src / main / kotlin / com / example / sample / SpringSampleApplication.kt
yhornisse on 12 Mar 2020 493 bytes Add Sample.
package com.example.sample

import org.mybatis.spring.annotation.MapperScan
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.context.annotation.ComponentScan


@SpringBootApplication
@ComponentScan("com.example.sample")
@MapperScan("mapper.com.example.sample")
class SpringSampleApplication


fun main(args: Array<String>) {
    SpringApplication.run(SpringSampleApplication::class.java, *args)
}