Simple Jbang demo1 app.

This commit is contained in:
Tomasz Półgrabia 2025-03-29 23:17:25 +01:00
parent 1a55433a2f
commit 16576d8859
3 changed files with 60 additions and 0 deletions

View file

@ -0,0 +1,20 @@
///usr/bin/env jbang "$0" "$@" ; exit $?
//DEPS io.quarkus:quarkus-bom:2.4.0.Final@pom
//DEPS io.quarkus:quarkus-resteasy
import javax.enterprise.context.ApplicationScoped;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
// @ApplicationPath("/hello")
@Path("")
@ApplicationScoped
public class App {
@GET
// @Path("/")
public String handleHello() {
return "OK";
}
}