Spring Boot Data JPA Entity DTO Mapping Using MapStruct
Introduction In this example I will show you how to convert entity class to DTO (Data Transfer Object) class and DTO class to entity class using MapStruct. So,…
Introduction In this example I will show you how to convert entity class to DTO (Data Transfer Object) class and DTO class to entity class using MapStruct. So,…
Spring framework provides bean life cycle call back methods to perform some additional tasks which you may want to perform when a bean is initiated or created or…
Spring InitializingBean and DisposableBean are the interfaces used in life cycle of Spring beans management. Each of these interfaces has only one method. InitializingBean has a method called…
Introduction In this tutorial we will discuss on Spring custom init() and destroy() methods. These methods are call back methods which used in Spring life cycle. You can…
Introduction In real-world applications, you may encounter scenarios where returning entity objects directly from a Spring Data JPA repository is not ideal. Instead, you might need to use…
In my other tutorials Spring MVC CRUD example with JDBC Spring MVC and Spring JDBC Example , Spring MVC and JDBC CRUD Example I have used XML configurations but in…
Introduction This tutorial Spring MVC and JDBC CRUD example shows how MVC(Model, View, Controller) works in Spring 4.x. In this tutorial you will also find how JDBC works…
Introduction This tutorial shows an example on how MVC (Model, View, Controller) works in Spring framework. In this tutorial you will also find how JDBC (Java Database Connectivity…