0

I would like to create an entry point for my Java application where I am able to call my program with different inputs, preferrably over HTTP. I am not sure if I should use Servlet like here Java Web Application specify entry point or there is simplier way to do that?

Smile88
  • 1
  • 1

1 Answers1

0

I suggest you use a simple web framework like javalin.

https://github.com/tipsy/javalin

Example

    Javalin app = Javalin.create().start(7000);
    app.get("/hello", ctx -> ctx.result("I am alive"));
prometheus
  • 802
  • 3
  • 9
  • 21