This is a template for a web application that uses Spring MVC and Hibernate. The sample code is a simple CRUD page that manipulates records for a single model object.
First build with:
$mvn clean install
Then run it with:
# Default in-memory data store and webapp with root context
# http://localhost:8080/
$java -jar target/dependency/webapp-runner.jar target/*.war
# JPA and Postgres data store hosted with jetty; change port within runlocal-jetty.sh.
# http://localhost:<port>/timetrackr
./runlocal-jetty.sh <your-password-for-postgres>
# JPA and Postgres data store hosted with tomcat7; change port within runlocal-tomcat.sh.
# http://localhost:<port>/timetrackr
./runlocal-tomcat.sh <your-password-for-postgres>