Skip to content

Example of REST services with Spring and AspectJ support for annotation point cuts

Notifications You must be signed in to change notification settings

Lotzy/spring-rest-aop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

spring-rest-aop

Example project illustrating:

  • how to implement REST services with Spring

    • simple
    • with path variable
    • with request parameter
    • returning JSON response
  • how to use Spring AOP with custom annotation as point cut

  • how to send parameters to the advice

  • how to get annotated method parameters

  • how to access return value of the advised method

  • how to use log4j2 with JSON layout

Using the project:

  1. Import in Eclipse as maven project
  2. Deploy in Tomcat 8.0 under Eclipse
  3. See JUnit tests
  4. URL for the rest endpoints: http://localhost:8080/spring-rest-aop/rest/greet or http://localhost:8080/spring-rest-aop/rest/greet/John or http://localhost:8080/spring-rest-aop/rest/greeting?name=John

About

Example of REST services with Spring and AspectJ support for annotation point cuts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages