github.com/GoogleContainerTools/skaffold@v1.39.18/examples/jib-gradle/src/main/groovy/example/micronaut/HelloController.groovy (about) 1 package example.micronaut 2 3 import groovy.transform.CompileStatic 4 import io.micronaut.http.MediaType 5 import io.micronaut.http.annotation.Controller 6 import io.micronaut.http.annotation.Get 7 import io.micronaut.http.annotation.Produces 8 9 @CompileStatic 10 @Controller("/") 11 class HelloController { 12 @Produces(MediaType.TEXT_PLAIN) 13 @Get("/") 14 String index() { 15 "Hello World" 16 } 17 }