Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

jasonish/jetty-springmvc-jsp-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published