Lombok’s principle is to automatically generate code during compilation. The poster has configured it Maven。你通过mvn compile编译代码可以查看一下User.class中是否有生成get/set函数。如果楼主期望在idea中编码时编译的代码中自动使用lombokPlease install the following plug-in and configure it according to the document. lombok-intellij-plugin
If it is an eclipse development environment, after configuring maven dependencies, you also need to install the plug-in in eclipse You can refer to the website: http://www.360doc.com/content...
Lombok’s principle is to automatically generate code during compilation. The poster has configured it
Maven
。你通过mvn compile
编译代码可以查看一下User.class
中是否有生成get/set
函数。如果楼主期望在idea
中编码时编译的代码中自动使用lombok
Please install the following plug-in and configure it according to the document.lombok-intellij-plugin
Just install a lombok plug-in.
https://github.com/mplushniko...
idea, just install a plug-in
If it is an eclipse development environment, after configuring maven dependencies, you also need to install the plug-in in eclipse
You can refer to the website:
http://www.360doc.com/content...
If you use eclipse as the development environment, after configuring maven dependencies, you need to manually install lombok in eclipse/myeclipse.
lombok installation
1.eclipse / myeclipse manually install lombok