/jetty-spring-mvc-jar

A self-contained web server using Jetty and configured to use Spring MVC

Primary LanguageJava

#What?

A skeleton project showing how to generate a web app as a simple jar.

#Why?

Because:

  • I don't want to install a webserver.
  • I don't want to worry about runtime dependencies.
  • I just want my app to be a single file.

#How?

To build:

mvn clean install

To run:

java -jar target/myproject-1.0-SNAPSHOT.jar

And that's pretty much it.