filmov
tv
How to setup MapStruct in Spring Boot application while using Lombok Library
Показать описание
Click the below link to download the latest Billing System Source code.
More information about the Billing System Project. Watch this video
This video explains how to setup Lombok and Mapstruct in Spring Boot Project. Lombok is a library using that we can generate setter/getter/constructor dynamically at runtime. We don't have to create it manually. For more information please watch the following video to understand Lombok and Lombok installation steps in IntelliJ, eclipse, and STS.
What is Mapstruct why I need to use MapStruct in this Project?
Mapstruct is a Framework using that we can copy one Java Object's value to another Java Object. This is the purpose of MapStruct. The reason I am using the Billing System. I don't want to use the entity object in the Presentation controller as it talking to the Client. The client should not know about the entity object that should use only the Value object. The Value object is a Java class mapped with Client request data. Also, the Value object we can call as DTO. Once the client sends the Value object to the Server-side Controller class, I want to convert the Value object to an Entity object to store the data in DB. In order to convert the Value object to the Entity object, I have to write a lot of Bilor plate code, and it is time-consuming. To avoid those Bilore plate codes I am using MapStruct Framework. The MapStruct framework is one of the best mapping Frameworks and it is very fast. In this video, I have shown a complete demo that how to configure MapStruct and how to integrate MapStruct with Lombok.
Please watch this full video for a complete demo that shows MapStruct and Lombok Integration.
Source code available at following GitHub URL:
I have posted all technical related topics on the following site. Please check it out
If you want to only Billing-System-related Technical Topics, please go to the following link.
Click the below link to download the latest Billing System code.
All Billing System-related videos update in the following post
#LombokwithMapStructintegration, #MapStructinspringboot #billingsystemusingspringboot #billingsoftwarespringframework
More information about the Billing System Project. Watch this video
This video explains how to setup Lombok and Mapstruct in Spring Boot Project. Lombok is a library using that we can generate setter/getter/constructor dynamically at runtime. We don't have to create it manually. For more information please watch the following video to understand Lombok and Lombok installation steps in IntelliJ, eclipse, and STS.
What is Mapstruct why I need to use MapStruct in this Project?
Mapstruct is a Framework using that we can copy one Java Object's value to another Java Object. This is the purpose of MapStruct. The reason I am using the Billing System. I don't want to use the entity object in the Presentation controller as it talking to the Client. The client should not know about the entity object that should use only the Value object. The Value object is a Java class mapped with Client request data. Also, the Value object we can call as DTO. Once the client sends the Value object to the Server-side Controller class, I want to convert the Value object to an Entity object to store the data in DB. In order to convert the Value object to the Entity object, I have to write a lot of Bilor plate code, and it is time-consuming. To avoid those Bilore plate codes I am using MapStruct Framework. The MapStruct framework is one of the best mapping Frameworks and it is very fast. In this video, I have shown a complete demo that how to configure MapStruct and how to integrate MapStruct with Lombok.
Please watch this full video for a complete demo that shows MapStruct and Lombok Integration.
Source code available at following GitHub URL:
I have posted all technical related topics on the following site. Please check it out
If you want to only Billing-System-related Technical Topics, please go to the following link.
Click the below link to download the latest Billing System code.
All Billing System-related videos update in the following post
#LombokwithMapStructintegration, #MapStructinspringboot #billingsystemusingspringboot #billingsoftwarespringframework
Комментарии