https://github.com/asharif/embdjetty
To use in your project you download repo, compile with
mvn package
this creates a jar file with the good ol' '-with-dependencies'. that file is the server. You need to specify port on java -jar:
-Dport=8080
Now you can drop it in your favorite spring app, compile with the maven assembly plugin and you got a portable web app (well no embedded db but that's another story)
No comments:
Post a Comment