Skip to content

acdvorak/spring-mvc-scaffolding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Spring MVC Scaffolding

Example Spring MVC server that exposes a simple REST interface.

Requirements

Uses

Running

IDE

The easiest way to run this project is to import it in IntelliJ IDEA.

  1. Create a new "Maven" Run/Debug configuration
  2. Command line: jetty:run

Command Line

Simply run mvn clean jetty:run in your terminal.

Usage

Once the server is running, open a REST client (e.g., Postman) and try the following requests:

GET     http://localhost:8080/test
GET     http://localhost:8080/test/1
POST    http://localhost:8080/test    {"id":5}
PUT     http://localhost:8080/test/6  {"id":6}
DELETE  http://localhost:8080/test/5

TODO

  1. Add Hibernate integration
  2. Generate WAR/EAR file for Tomcat/WebLogic
  3. Add Freemarker

About

Spring MVC Scaffolding

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages