spring-boot-axon-demo/src/main/kotlin/com/cubetiqs/demo/axon/AxonApplication.kt
Sambo Chea fddec51712 Add sample route
And before upgrade to v1.4 of kotlin
2020-08-21 09:35:31 +07:00

24 lines
642 B
Kotlin

package com.cubetiqs.demo.axon
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
@SpringBootApplication
class AxonApplication
fun main(args: Array<String>) {
runApplication<AxonApplication>(*args)
}
@RestController
@RequestMapping
class DefaultController {
@GetMapping
fun index(): ResponseEntity<Any> {
return ResponseEntity.ok("ok")
}
}