What is the simplest way to listen for incoming http traffic in Java/make a REST API? : <p>I have a Java JSVC application in which I would like to expose a web/REST API from.</p>

<p>What is the simplest way to do so?</p>

<p>Every time I try to find a simple tutorial it wants me to install at least a framework and a web server (jersey, tomcat, Java EE, gradle, glassfish, spring and maven has been mentioned a lot)...</p>

<p>Is there a lightweight way to do it with as few dependencies as possible?</p>

<p>My app needs to be able to be deployed as a standalone daemon/service.
It would be problematic if people had to set up a tomcat webserver and/or other stuff.</p>

<p>Isn't any Java app be able to bind to a port and listen for data?</p>
