https://github.com/mukul273/lombokcrashcourse
Spring Boot with Lombok
https://github.com/mukul273/lombokcrashcourse
lombok spring spring-boot spring-data springframework
Last synced: about 1 month ago
JSON representation
Spring Boot with Lombok
- Host: GitHub
- URL: https://github.com/mukul273/lombokcrashcourse
- Owner: mukul273
- Created: 2018-01-23T22:14:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-24T00:31:29.000Z (over 8 years ago)
- Last Synced: 2025-04-10T13:36:17.607Z (about 1 year ago)
- Topics: lombok, spring, spring-boot, spring-data, springframework
- Language: Java
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a crash course on lombok library being used in Spring boot.
Lombok is used to avoid lot of boiler plate code when it comes writing getters and setters for a bean.
This project uses web, jpa, h2 and lombok libraries.
@Getter and @Setter can be used at field level as well as class level
if we have final variable in the class then @NoArgConstructor can't be used
@Value annotation makes the fields private and final. So the class becomes immutable. No setters.
@Value precedes over @Data.
@Builder will build the object for class.
@NonNull will make sure that object is not null checked. No more nullpointerexception
@Log4J or similar annotations will bring in the logger mechanism. No more instantiation of logger in the class.
Please refer https://projectlombok.org/features/all