Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 1.01 KB

README.md

File metadata and controls

22 lines (16 loc) · 1.01 KB

Playground for Jersey on Embedded Tomcat

How to start

gradlew run to launch the server on port 8080.

Contents

  • (root) is the context root and will return a static content.
  • basic is routed in web.xml and will return a plaintext message.
  • app is the the root resource of the app application path, and is the same resource as basic.
  • app/greeting is a demonstration of dependency injection.
  • app/positive is a demonstration of transaction.
    • GET shows the current value.
    • PUT a positive or negative number into the request body to add the value, but the value will never be negative.
  • app/validation/{id} is a demonstration of Bean Validation.

Author

atti

License

This project is licensed under the MIT License - see the LICENSE.md file for details