Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想特别尝试龙目岛@NoArgsConstructor和@Getter,@Setter
@NoArgsConstructor
@Getter
@Setter
但是,当我尝试使用它并执行以下操作时:
User user = new User(); // error, even if User have @NoArgsConstructor annotation
我在这里错过了什么吗?
错误:
The constructor User() is undefined
您是否安装了 Lombok 并将其添加到您的 pom 文件中?
见:http: //jnb.ociweb.com/jnb/jnbJan2010.html#installation