Java Lombok "@Getter" is not applicable to field
For Lombok to work properly, you have to install two things:
- lombok dependency (or single
*.jar
file for hardcod)<dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.18.10</version> <scope>provided</scope> </dependency>
- plugin to your IDE so that it can see those implicit getters/setters.
Use
import lombok.Getter;
instead of:
import jdk.nashorn.internal.objects.annotations.Getter;