myeclipse install lombok

foreword

When we import a project, if the project uses the lombok gadget, then you will find a very strange phenomenon. The jar package is obviously imported, and annotations such as Data can also be used; but calling the getter and setter methods still reports an error. The reason is that myeclipse has a check function, when you call a setter or getter method that does not exist, it will prompt an error that there is no such method. We know that using the lombok framework, there are getter and setter methods with the Data annotation. But myeclipse does not know! What to do, let it know your annotation, how to know it? Just install lombok in myeclipse.

The installation steps are as follows: (eclipse is the same as this)

One: Download the jar package

Official website: https://projectlombok.org/download

 

 Two: Put the downloaded jar package in the myeclipse installation directory, as shown below

 

 Three: increase the startup command

Open the myeclipse.ini file in the above figure (just open it with Notepad), add -javaagent:lombok.jar, as shown below

 

 Four: restart myeclipse

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324978967&siteId=291194637