Lombok not working in a Netbeans project

后端 未结 4 1478
遥遥无期
遥遥无期 2021-02-08 04:36

I want to use Lombok in a project to use @Getter and @Setter.

I included using Maven:

    
        org.projectlombok<         


        
4条回答
  •  南方客
    南方客 (楼主)
    2021-02-08 04:48

    This worked with us:

    • remove provided from the Lombok dependency
    • clean and build the project
    • change the Lombok version (we changed from 1.16.20 to 1.16.16)
    • clean and build the project
    • restore the Lombok version and put back provided
    • clean and build the project

提交回复
热议问题