Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/starichkov/spring-boot-aop-examples

Examples of how to log some method's parameter using aspects - before and after.
https://github.com/starichkov/spring-boot-aop-examples

Last synced: 11 days ago
JSON representation

Examples of how to log some method's parameter using aspects - before and after.

Awesome Lists containing this project

README

        

Spring Boot AOP examples
=

## Technical information

| Piece of tech | Version |
|---------------|---------|
| Java | 17 |
| Spring Boot | 2.7.x |
| Spring | 5.3.x |

## Testing

Two examples of how to log some method's parameter using aspects - before and after.

Use SwaggerUI for testing these aspects:

```
http://localhost:8080/swagger-ui/index.html
```

Post some test object, and see the logs.

Also added configurable by property `@Around` aspect to log execution time of the method.

Use `PUT` endpoint from Swagger UI to test it.