How to use Project Lombok with Java project
Pregunta
I want to try out Lombok specifically the @NoArgsConstructor
and @Getter
, @Setter
However when I try to use it and do something like:
User user = new User(); // error, even if User have @NoArgsConstructor annotation
Am I missing something here?
Error:
The constructor User() is undefined
Solución
Have you installed Lombok and added it to your pom file?
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow