I created this little app to scratch my own itch. You’ll create a simple, standalone command-line Java application, which is packaged as a very portable, executable JAR file.īut first, why? Advertisements Why though?īut first, why? Where would you use this? So in this tutorial, we’ll see how to create a standalone Java application, with a main method, which uses the Undertow web server to serve a simple “Hello, world!” message over HTTP. And frameworks add a lot of overhead, for something that can actually be solved without them. Both of these include easy options for embedding web servers.īut… frameworks require a little knowledge upfront. To add an embedded web server to your application, you could use a framework, like Spring Boot or Quarkus. Or perhaps, a simple web server, embedded in a Java app. Sometimes, we just want something really simple.
0 Comments
Leave a Reply. |