The Magic of Using Lombok in Spring
Tech-Today

The Magic of Using Lombok in Spring



1. Overview

Lombok is a Java library that simplifies a lot of things for developers. Like the automatic creation of getters/setters, constructors, etc. For a more detailed list of features click on the reference below.

2. Lombok Installation

Follow this guide: https://projectlombok.org/setup/eclipse.

After that make sure to close Spring STS and run with -clean parameter to enable the plugin.
>sts.exe -clean

3. Spring Project

To demonstrate the power of Lombok library I created a Spring REST API demo project that features a REST API where the entity fields have auto getter/setter generation.

As a bonus, this project is also HATEOS enabled.

The project is available at https://github.com/czetsuya/Spring-Lombok.

References:





- Create A Restful Web Service In Spring
Slack Discussion Repositories https://github.com/terawarehouse/terawarehouse-cataloghttps://github.com/terawarehouse/terawarehouse-reactTo prepare the project from future development, we will be creating a multi-maven project layout. Unfortunately,...

- Spring Development Environment
Slack Discussion Repositories https://github.com/terawarehouse/terawarehouse-cataloghttps://github.com/terawarehouse/terawarehouse-reactBefore we can begin coding, we must first download and configure Spring Tools 4, which is the latest available Spring...

- Catalog And Sellout Management System Using Spring
A catalog and sales order management system is commonly used by companies to manage their catalog and capture their sales data into a centralized database so that a real-time accurate report can be generated instantly. This application can trigger notification...

- Secure Spring Boot Rest Project With Keycloak
1. OverviewIn this blog, we will cover the basics of securing a Spring project with Keycloak using keycloak-spring-boot-starter and keycloak-spring-security-adapter.2. LimitationKeycloak is already a well-documented topic that needs no further write up....

- Microservices In Spring
And so I was trying to learn microservices and since I'm from the JavaEE background it's given that I will first check: http://wildfly-swarm.io/tutorial. I found the code too complicated, how can I focus on the business problem if it's...



Tech-Today








.