Introducing 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, con...
https://www.czetsuyatech.com/2018/12/introducing-lombok-in-spring.html
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:
Post a Comment