Simple Jbang demo1 app.
This commit is contained in:
parent
1a55433a2f
commit
16576d8859
3 changed files with 60 additions and 0 deletions
20
2025/03/jbang_demo1/App.java
Normal file
20
2025/03/jbang_demo1/App.java
Normal 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";
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue