I need the simplest web server to write a minimal web interface for an application. It should be something really featureless like Webrick from Ruby's standard library or BaseHTTPServer from Python's standard library, just a way to keep a server listening to a port and respond to GET requests with a string.
Thanks
There has been concern for nearly five years application servers are dead. Truth be told, they are not dead, but is their usage in decline? The simple answer is yes. Over the years, it appears corporate environments have decided the "return on investment" is not there when looking at Java application servers.
Java 18's Simple Web Server is a minimal HTTP static file server that was added in JEP 408 to the jdk. httpserver module.
Apache Tomcat One of the more popular web servers in the Java ecosystem is Apache Tomcat. You can check the latest version of Apache Tomcat and the support Java version(s) on the project's website.
Try NanoHTTPD. I have been using it for Android development.
NanoHTTPD is a light-weight HTTP server designed for embedding in other applications, released under a Modified BSD licence.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With