Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
package nl.sourcelabs.dsl
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.web.bind.annotation.*
class DslDemoApplication
class HelloWorldController {
fun sayHi(@PathVariable name: String): Greeting {
return Greeting("Hi, $name!")
data class Greeting(val message: String)
fun main(args: Array<String>) {, *args)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment