I'm using lombok in intellij, and have the plugin installed.
My problem is that when I use the @Date notation in my class, only that class can see the methods created by lombok. So if my class declaration looks like this:
@Document
@Data
public class dbDocument {
@Id
private String uniqueId;
And the method
public String testGetter (dbDocument doc) {
return doc.getUniqueId;
}
Will work inside the dbDocument class, but not in any other class. (where I get a Java: cannot find symbol error)
How can I fix/debug this?
Oops.
Looks like I was spelling the method wrong while invoking it. Nothing to see here.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.