https://github.com/danpersa/spring-jaxrs-example
https://github.com/danpersa/spring-jaxrs-example
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/danpersa/spring-jaxrs-example
- Owner: danpersa
- Created: 2013-05-08T15:55:26.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2014-03-24T17:07:24.000Z (about 12 years ago)
- Last Synced: 2025-01-22T04:31:09.320Z (over 1 year ago)
- Language: Java
- Size: 203 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Technology Stack
The project uses the following technologies:
- **java**: Java 7
- **web server**: Tomcat 7
- **web/REST**: Spring 4, RestEasy 3
- **view**: Freemarker
- **marshalling**: Jackson (for JSON)
- **testing**: JUnit
- **utils**: Lombok
## How to run it
* run 'mvn clean install' inside the main project
* run 'mvn tomcat7:run' inside the spring-jaxrs-backend folder
* run 'mvn tomcat7:run' inside the spring-jaxrs-frontend folder
* go to http://localhost:8090/
## Call the API from the browser:
- regular call
http://localhost:xxxx/fortune-cookie/14
- exception handle
http://localhost:xxxx/fortune-cookie/12
- jsr-349 validation handle
http://localhost:xxxx/fortune-cookie/103