Instagram Widget

How to solve getter setter not generating problem of Lombok in Spring Tool Suite

We use Lombok to avoid general coding as it already provides the boilercode for us at compile time like:
  • Getters
  • Setters
  • Equals Method
  • Hashcode Method etc.



However for every new installation of spring tool suite or sts, it doesn't generate code. This happens because we need to install Lombok in sts. To do that please follow below steps:

  • Open your maven repository
  • Locate the Lombok jar inside org
  • Run the jar available there.
  • A window will appear
  • Browse sts installation location folder
  • Click on install
  • Restart sts 
  • Update your project
Now you will be able to get the geeter or setter methods that you want to use with the object.


Post a Comment

0 Comments