Newer
Older
sample-kotlin-spring1 / src / main / kotlin / com / example / sample / controller / Hello.kt
package com.example.sample.controller

import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RestController

@RestController
class Hello {
    @GetMapping("/hello")
    fun sample(): String = "Hello"
}