Skip to content

hareendran/Jersey2-Spring4-Servlet-3-Spock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Jersey2-Spring4-Servlet-3-Spock

Objective :To Demonstrate a Jersey 2.0 with Spring a) without application.xml and to use JavaConfig b) without web.xml ,use servlet 3.0 spec c) Make use of Spock for Testing d) Use Docker to create Tomcat instance and boot it up

Stack used :

Jersey 2.0 Spring 4.0.1 Spock 0.7

Steps

1.Import the project and run mvn clean jetty:run

this would fire up the Jersey Service on local you can now use curl or any browser extension to point the resources

GET http://localhost:8080/resources/application.wadl

to get all the resources under this service GET http://localhost:8080/resources/ping

to test whether app is working or not GET http://localhost:8080/resources/employees

to give all the hardcoded employees GET http://localhost:8080/resources/employees/111 to drill down to single employee

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published