I have an old application with Spring MVC on Tomcat in which I want to start a server on a different port.
I usually use the handy Javalin for such cases. But in this case it doesn't suit me because it is loaded using Jetty which loads javax.servlet-api 3.1
, but the application uses javax.servlet-api 3.0
.
Can anyone suggest a similar Framework or a convenient pattern for HttpServer (so as not to create a Handler for each request).
An example of creating a server in Javalin:
public MyServer() {
Javalin app = Javalin.create (). Start (7000);
app.get ("/", ctx -> ctx.result ("Hello World"));
}