lombok Tools plug-in installation (idea, eclipse)

https://blog.csdn.net/Y_hahaha/article/details/89186284 

Reason, the project under the IDEA @ Data, @ Builder annotation does not work. Lombok this problem is found a jar. This jar specific application scenarios have to go to Baidu.

Found to be dependent jar package maven has been downloaded. Plug-in line to see the original problem.

@Builder notes did not work, the reason is the need to install plug-ins.

Plug-in installation, find plugins in settings setting in. Lom retrieved in the search box, if not click on the red box search in repositories.

Click install to install it.

Remember installed the restart idea

After the restart following settings, to find the setting in FIG interface, a red box on the right tick

Save the restart idea.

After the restart problem perfect solution!


--------------------- 
Author: corner flag Luneng Stadium 
Source: CSDN 
Original: https: //blog.csdn.net/m0_37779977/article/details/ 79028299 
copyright: This article is a blogger original article, reproduced, please attach Bowen link!

 

=======================================================================================

lombok installed during eclipse

1, download lombok.jar, lombok.jar official download address: https: //projectlombok.org/download

2, double-click the downloaded lombak.jar, steps are as follows:

2-1. Close the warning that pops up, click Specify location ..

2-2. Select the installation directory of eclipse

2-3. Click the Install / Update

2-4. Click Quit Installer, complete the installation

3、安装完成之后,请确认eclipse安装路径下是否多了一个lombok.jar包,并且其
     配置文件eclipse.ini中是否 添加了如下内容:-javaagent:D:\build-env\eclipse\lombok.jar

4、重启eclipse或myeclipse

5、测试,建立如下类:

import lombok.Data;   
  
@Data  
public class DataObject {  
     private String id;     
     private String name;     
     private String userId;     
     private String password;    
}  
备注:如过安装成功但是@Data等注解无效,可能是由于你的eclipse版本是新版本,你的lombok.jar版本太旧。那么请下载最新的lombok.jar再进行安装。
--------------------- 
作者:懵懂无知的蜗牛 
来源:CSDN 
原文:https://blog.csdn.net/qq_25646191/article/details/79639633 
版权声明:本文为博主原创文章,转载请附上博文链接!

Guess you like

Origin www.cnblogs.com/kelelipeng/p/11326936.html