This is a simple web service which uses AOP. The REST methods are advised by multiple Aspects.
- Java JDK 15
- Maven:
spring-boot-starter-aop
aspectjweaver
- Log method name and parameters
- Log duration of method
- Compile and run web service:
mvn clean install
mvn spring-boot:run
- Sample REST calls:
GET http://localhost:8080/api/greeting/{name}
GET http://localhost:8080/api/order/{menu}
Method [greeting] gets called with parameters [John]
Exeution took [21ms]