Category: Java

Introduction Records are a new feature in Java 14. We can use them to avoid a lot of boilerplate code in standard DTO classes, save our time, and limit space for errors. In this tutorial, we will show what records are and how we can use them in our code to make it more readable […]Continue reading

Project Lombok is a Java library tool that generates code for minimizing boilerplate code. The library replaces boilerplate code with easy-to-use annotations. For example, by adding a couple of annotations, you can get rid of code clutters, such as getters and setters methods, constructors, hashcode, equals, and toString methods, and so on. This is Part […]Continue reading

Introduction In this post, we are going to write about Project Lombok, a must-have tool for every Spring programmer. Lombok is a Java library, that enhances programmer productivity, by providing several helpful annotations. It makes classes shorter and frees programmers from writing much boilerplate code. After reading this tutorial, we will be able to setup […]Continue reading

In this post, I’ll explain how to work with Autowiring In Spring First, we’ll begin with a brief introduction about Autowiring. Then, we’ll look at the different modes of Autowiring using XML configuration. Finally, we’ll look at @Autowired annotation with its different modes. Introduction Spring provides a way to automatically detect the relationships between various […]Continue reading

In this article, we’ll to learn how to implement the service locator Design Pattern in Spring. We’ll begin with a brief introduction. Next, we’ll introduce an example that benefits from using the pattern. And finally, we’ll work through an implementation in Spring. Introduction: Service Locator Pattern When we begin working with the Spring framework, we run […]Continue reading