DEV Community

Discussion on: Using Lombok in Spring Boot

Collapse
 
denday04 profile image
Andreas Stensig

Nice introduction.
I would suggest also adding the @Value annotation to your list. A lot like @Data, but instead it treats the object as immutable, so no setters, and some restriction on constructors and fields. I use it even more than @Data, to help keep a more clean object API that isn't polluted with unintended getters.

Collapse
 
zarlihninn profile image
Zar Li Hnin

Thank you for your suggestion!