IDEA cannot find the get and set methods after using the lombok entity class plus @Data annotation

1. The cause of the problem

IDEA没有安装lombok插件

Two, the solution

1.File→Settings

insert image description here

2.Plugins→Search "lombok"→Install

insert image description here

3. Restart IDE (restart IDEA)

insert image description here
insert image description here

重启完成后测试是否能正常调用get和set方法,如果不行如下图启用注释处理

insert image description here

Guess you like

Origin blog.csdn.net/weixin_44904239/article/details/131888380