Lombok不适用于Eclipse Neon [英] Lombok does not work for Eclipse Neon
问题描述
我下载了lombok.jar(lombok-1.16.14.jar)把它放到我的下载中。然后我点击了这个jar,执行正确识别我的MacOS上的Eclipse实例,然后我选择了我想要的实例。 Lombok也在pom.xml中指定
org.projectlombok
lombok
1.16.14
提供
I downloaded lombok.jar (lombok-1.16.14.jar) put it into my Downloads. Then I clicked on this jar, the execution correctly identifies the Eclipse instances on my MacOS and then I selected the instance I want. Lombok is also specified in the pom.xml org.projectlombok lombok 1.16.14 provided
在eclipse.ini中我得到了补充:
-javaagent:../ Eclipse / lombok.jar
In eclipse.ini I got the addition: -javaagent:../Eclipse/lombok.jar
lombok.jar已添加与eclise.ini相同的目录
/Applications/Eclipse.app/Contents/Eclipse
lombok.jar was added to the same directory as eclise.ini /Applications/Eclipse.app/Contents/Eclipse
我仍然在Eclipse问题中遇到setter / getter错误尽管如此我的 mvn
构建工作正常。
I am still getting setter/getter errors in Eclipse Problems despite that my mvn
build works fine.
用户代码:
@Entity
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@EntityListeners(UserListener.class)
public class User implements Serializable, UserDetails {
...
错误:
The method getRole() is undefined for the type User
推荐答案
对我来说,下载最新的Eclipse Neon,即Neon 3,解决了问题
For me, downloading the latest Eclipse Neon, i.e. Neon 3, fixed the problem
这篇关于Lombok不适用于Eclipse Neon的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!