Add sample route
And before upgrade to v1.4 of kotlin
This commit is contained in:
parent
28be046dd6
commit
fddec51712
@ -2,6 +2,10 @@ package com.cubetiqs.demo.axon
|
|||||||
|
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication
|
import org.springframework.boot.autoconfigure.SpringBootApplication
|
||||||
import org.springframework.boot.runApplication
|
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
|
@SpringBootApplication
|
||||||
class AxonApplication
|
class AxonApplication
|
||||||
@ -9,3 +13,12 @@ class AxonApplication
|
|||||||
fun main(args: Array<String>) {
|
fun main(args: Array<String>) {
|
||||||
runApplication<AxonApplication>(*args)
|
runApplication<AxonApplication>(*args)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
@RequestMapping
|
||||||
|
class DefaultController {
|
||||||
|
@GetMapping
|
||||||
|
fun index(): ResponseEntity<Any> {
|
||||||
|
return ResponseEntity.ok("ok")
|
||||||
|
}
|
||||||
|
}
|
@ -1 +0,0 @@
|
|||||||
|
|
2
src/main/resources/application.yml
Normal file
2
src/main/resources/application.yml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
server:
|
||||||
|
port: 8182
|
Loading…
Reference in New Issue
Block a user