我不确定我做错了什么。有人可以帮我吗
POM:
![enter image description here](https://i.stack.imgur.com/OyVtM.png)
Implementation:
![enter image description here](https://i.stack.imgur.com/9qcjd.png)
Using it as below:
![enter image description here](https://i.stack.imgur.com/BtlAq.png)
builder() 方法似乎无法被识别。我正在使用 IntelliJ。我有什么遗漏的吗?
以下是我的智能设置:
除了依赖于provided
您必须启用注释处理(如果您使用的是 IntelliJ Idea)并安装龙目岛插件 https://plugins.jetbrains.com/plugin/6317-lombok/.
-
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
-
注释处理:导航至File
-> Settings
-> Build, Execution, Deployment
-> Compiler
-> Annotation Processors
并检查Enable annotation processing
.
-
Lombok 插件:导航至File
-> Settings
-> Plugins
并确保 Lombok 插件已安装。
-
重新启动 IntelliJ Idea -最有可能遗漏的部分:)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)