java – Lombok doesnt work with spring-boot-maven

java – Lombok doesnt work with spring-boot-maven

if your problem is that you dont see the getters and setters thats not a problem as lombok provide it in compile time in Etudiant.class file
but you must use lombok plugin in your IDE

setup guide https://projectlombok.org/setup/overview

This should work, try it;

  1. The project has lombok dependency. First look into your .m2
    repository and if not ,find the lombok jar!
  2. Double click on jar, specify the path for IDE like C:UsersideinstallpackageyourIDE.exe
  3. Restart the IDE and update the maven project.

java – Lombok doesnt work with spring-boot-maven

LomBok has a jar inside m2 folder (mvn cache folder)
eg: C:UsersMypc .m2 repositoryorgprojectlomboklombok1.18.12 based on the mvn package that has to be executed it will search for ide

enter

and then you need to restart your ide then if you search within the class you can see getter and setters

Leave a Reply

Your email address will not be published. Required fields are marked *