No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/main
.gitignore
README.md
pom.xml

README.md

Template - Embedded Jetty/SpringMVC/JSP Application

Summary

This is a standalone Spring based Java application that embeds Jetty and uses SpringMVC as its web tier. Spring Security is used for authentication.

It is a template that demonstrates embedding Jetty and SpringMVC into your application as a web tier instead of deploying your application into a container.

Running

With Maven

mvn compile exec:java

Then point your browser at http://localhost:8080.

Basic Jar

The default package goal will build a jar in the target directory with dependency jars copied into target/lib.

mvn package
java -jar target/jetty-springmvc-jsp-template-0.0.1-SNAPSHOT.jar

Fat Jar

If you would rather have a single jar that contains all the dependencies, use the 'fatjar' profile.

mvn -Pfatjar package
java -jar target/jetty-springmvc-jsp-template-0.0.1-SNAPSHOT.jar

Then point your browser at http://localhost:8080.

Other Notes

  • To change the port that jetty will start on, set the jetty.port property to the desired port.