lombok- all I can say is you're too big

Add a reference to maven: that is, add the jar package of lombok,

Xml code   Favorite code
  1.               <dependency>  
  2.     <groupId>org.projectlombok</groupId>  
  3.     <artifactId>lombok</artifactId>  
  4.     <version>1.14.4</version>  
  5. </dependency>  

 Add to the java class that needs to use getters and setters:

@Data

@EqualsAndHashCode(callSuper = false)

@NoArgsConstructor

, sometimes in order not to let it override the hashCode method, just write:

@Getter

@Setter

@NoArgsConstructor

 

Install lombok in eclipse,

method:

cmd--" Find the directory where lombok's jar package is located:
E:\working\dataAnalysis\Maven\repository\org\projectlombok\lombok\1.14.4> java -jar lombok-1.14.4.jar 

Then select the eclipse software directory, and then install it.

 

 Or you can try adding the following configuration to eclipse.ini in the eclipse directory:

-javaagent:lombok.jar

-Xbootclasspath/a:lombok.jar

And copy the jar package lombok.jar to this directory.

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326634665&siteId=291194637