How to reduce boilerplate code in REST API Spring Data REST java Spring Boot Spring Boot REST Spring Data REST by devs5003 - October 20, 2023October 20, 20235 In previous article on REST API Development, we have already seen that how we can develop a REST API with minimum lines of code. Still, we have more scope to reduce lines of code using a concept called 'Spring Data REST' in Spring Boot. So, our title of the article is 'How to reduce boilerplate code in REST API Spring Data REST'. In Spring Data REST concept we don't have to write even RestController and its methods. The Spring Data REST dependency will take care of it using HATEOAS (Hypertext as the Engine of Application State). HATEOAS project is a library of APIs that we can use to easily create REST representations. Spring Data REST provides hyperlinks to access REST operations
Lombok Spring Boot And Lombok Annotations Lombok Java java Spring Boot by devs5003 - September 16, 2023February 28, 202417 While developing a project in Java, we tend to repeat the similar kind of code for each class we create. Such kind of repetitive code is generally called boilerplate code. Our next question might be like 'Can we get rid of such multiple lines of code in real time development?' Then answer of your question is simply 'Yes'. The next question should be 'How can we reduce such kind of boilerplate code?' Now the answer is 'with the help of Lombok API, some people call it Lombok Project'. However, as the title " Lombok Spring Boot and Lombok Annotations" suggests, our focus in this article will be on the Lombok API Annotations. Furthermore, the 'Lombok API' is highly being used in