Make sure jbang
is installed. See: https://jbang.dev.
$ jbang Application.java
...
2023-03-25T18:12:36.599+01:00 INFO 83977 --- [main] demo.Application: Started Application in 2.7 seconds (process running for 3.27)
Send an authenticated GET
request to http://localhost:8080
.