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

https://github.com/kasramp/spring-boot-aspectj

Example of Spring Boot 3 with AspectJ
https://github.com/kasramp/spring-boot-aspectj

aspectj java spring spring-aop spring-boot springboot springboot3

Last synced: about 2 months ago
JSON representation

Example of Spring Boot 3 with AspectJ

Awesome Lists containing this project

README

        

# Spring Boot 3 + AspectJ example

Sample Spring Boot 3 project with AspectJ configured. With AspectJ we can apply `@Cacheable` and `@Transaction` to **private** methods. Works with JDK 17.

Read this blog post for more details,

- [How to configure AspectJ in Spring Boot](https://www.geekyhacker.com/how-to-configure-aspectj-in-spring-boot/)
- [How to use Spring Boot Cacheable on self-invocation](https://www.geekyhacker.com/how-to-use-spring-boot-cacheable-on-self-invocation/)

## How to run

To run the project execute,

```bash
$ mvn spring-boot:run
```