Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

expressjs-similar Framework in Java?

Is outside there an expressjs similar framework for Java? I'm looking for an small framework which can process different HTTP-Requests and send response, cookies etc. As in expressjs.

like image 413
Simon Avatar asked Feb 12 '18 15:02

Simon


1 Answers

Ok, I decided to roll out my own framework. It's called java-express. The API is very similar to the one of expressjs:

Express app  = new Express();

app.get("/", (req, res) -> {
    res.send("Hello World");
});

app.listen();
like image 102
Simon Avatar answered Sep 21 '22 08:09

Simon