참조 Ref. https://spring.io/guides/tutorials/spring-boot-kotlin/
-
File > New > Project > Spring initializer 선택
-
language : kotlin
Type : Gradle Project
-
Dependencies > “Web”, “Mustache” 선택
-
build.gradle
@RestController
class RestTestController {
@GetMapping("/test")
fun blog(model: Model) : String {
return "test"
}
}