This project demonstrates the use of Java Dynamic Proxies and CGLIB proxies. It's built with Maven and requires Java 17 or later (tested with Java 22).
The project is structured as follows:
src/main/java: Contains the main application code.pom.xml: The Maven project configuration file.
The project uses the following dependencies:
- CGLIB (for CGLIB proxy examples)
To build the project, use Maven:
mvn clean package # Running Dynamic proxy
java -jar proxy-1.0-SNAPSHOT.jar dynamic-proxy# Running Dynamic proxy
java --add-opens java.base/java.lang=ALL-UNNAMED -jar proxy-1.0-SNAPSHOT.jar cglib-proxy