Lombok Introduction
Lombok is a simple form of annotations that can help us simplify the elimination of some of the necessary but very bloated Java code tools, by using the corresponding annotations, you can compile the source code when the corresponding method is generated. Official address:https://projectlombok.org/
You can annotate any field with a @Getter/@Setter (or, of course, a comment on a class), and let Lombok automatically generate the default Getter/setter method.
The default generated method is public, and if you want to modify the method modifier you can set the value of AccessLevel , for example:@Getter (Access = accesslevel.protected)
Installation steps:
1. download the lombok.jar Package
Https://projectlombok.org/download
2. Copy the Lombok.jar package to the file directory where the Myeclipse.ini/eclipse.ini resides
3. Open myeclipse.ini/eclipse.ini, and at the end add the following code and save:
-javaagent:lombok.jar
4. Restart the myeclipse/eclipse.
5.project==>clean Cleanup Project
MyEclipse, Eclipse installation Lombok