Please go to the official website to download lombok:https://projectlombok.org/
I saw on the official website that it was directly double-clicking the jar package to automatically scan the Eclipse installation directory, but I still have myeclipse on my computer.
So just do it manually.
1. Place the downloaded jar package in the Eclipse installation directory
2. At the bottom of the Eclipse.ini, add the following configuration
-xbootclasspath/a:lombok.jar-javaagent:lombok.jar
3. Restart Eclipse to introduce Lombok dependencies in the MAVEN project
<dependency> <groupId>org.projectlombok</groupId> <artifactid>lombok</ artifactid> <version>1.18.0</version> <scope>provided</scope></ Dependency>
4. Test, as you can call directly to the get and set methods
Summary: Just started to make a direct lombox dependence, and then test, how to test is not working, finally found the problem, you must first configure the Lombok to be able. It's easy for beginners to make mistakes.
Springboot+maven integrated Lombok simplifies code