Setting up Lombok with SpringToolSuite and Intellij Idea

Lombok is a java library that you can plug into your editor which will automatically generate code in .class file instead of in source file.
E.g:  getters, setters toString, equals, hashcode, builder, loggers, and many others.

In this tutorial, I’ll talk about configuring it in two of the most popular IDEs- IntelliJ IDEA and Spring Tool Suite.

Check my Github repo to learn project Lombok using java source code.

Note: Step for installing the plugin for Eclipse and Spring tool Suite (STS) are the same.

Steps to configure Lombok in STS


  • Download Lombok jar from the Lombok site.
  • Double click on Lombok jar which will open below Installer wizard, Choose IDEs in which you want to install. If your not IDE is not listed then you can browse using Specify location tab.

  • Once selected, click on Install/update button and you are done.



Steps to configure Lombok in IntelliJ IDEA

  • Open IntelliJ Idea and click on File-> Settings…
  • Click on Plugin option and then search for Lombok
  • Click on the Install button on the plugin page



  • Once done with the installation, click on the restart IDE button.

Comments

  1. Lombok is a practical example of how developer tooling can reduce repetitive code without requiring developers to manually maintain common methods such as getters, setters, toString, equals, hashCode, builders, and loggers. The article is also useful because it focuses on the actual IDE setup rather than only explaining what Lombok does.

    The configuration steps for Spring Tool Suite and IntelliJ IDEA show an important part of working with Java projects: the development environment needs to recognize and support the libraries being used. This makes the tutorial relevant to a Java Full Stack Course, where developers work with Java-based application code and the tools required to develop and maintain it efficiently.

    ReplyDelete
  2. Lombok is also useful for keeping Java source code more concise when projects contain many classes with repetitive boilerplate methods. In applications built with frameworks and backend components, reducing this repeated code can make the implementation easier to maintain. This connects with Spring Boot ReactJS Full Stack Course concepts when Java-based backend development forms part of a broader full-stack application architecture.

    ReplyDelete

Post a Comment

Popular posts from this blog

Understanding Mutual TLS (mTLS): A Comprehensive Guide for Beginners

Liquibase Tutorial

Streaming Spring boot logs to ELK stack