Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/starichkov/spring-boot-aop-examples
- Owner: starichkov
- Created: 2018-11-20T16:29:43.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-31T13:04:48.000Z (over 1 year ago)
- Last Synced: 2023-06-08T15:33:18.330Z (over 1 year ago)
- Language: Java
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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.