Search code examples
javascriptjavanode.jsexpressframeworks

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.


Solution

  • 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();