Czar
06/21/2017, 8:17 AM@RestController("/api")
open class HelloController {
@GetMapping("/hello")
open fun hello(): String = "Hello!"
}
Spring completely ignores "/api"
and maps to my.domain/hello
instead of my.domain/api/hello
. Am I missing something or it's a bug?
UPDATE: My bad, @RestController
annotation's value
denotes component name, not request mapping part.