【发布时间】:2016-05-20 17:29:22
【问题描述】:
我在 intellij 中使用 lombok,并安装了插件。
我的问题是当我在我的类中使用@Date 表示法时,只有那个类可以看到lombok 创建的方法。因此,如果我的类声明如下所示:
@Document
@Data
public class dbDocument {
@Id
private String uniqueId;
还有方法
public String testGetter (dbDocument doc) {
return doc.getUniqueId;
}
将在 dbDocument 类中工作,但不能在任何其他类中工作。 (我得到一个Java:找不到符号错误)
如何修复/调试此问题?
【问题讨论】:
-
我没有使用 lombok 的经验,所以也许其他人可以提供比我更好的支持,但注释可能会影响方法/参数的可见性似乎非常可疑。可以发MCVE吗?
-
注解实际生成方法。如果我获得 MCVE 会更新
标签: java intellij-idea lombok intellij-lombok-plugin