質問

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
役に立ちましたか?

解決

Have you installed Lombok and added it to your pom file?

See: http://jnb.ociweb.com/jnb/jnbJan2010.html#installation

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top