In all my previous post under MapStruct, whenever MapStruct has to create a target object it used constructor. What if the target class follows builder pattern instead of using a simple constructor. In this post under MapStruct where object is mapped from source to destination class. I will show with example how to instruct MapStruct…… Continue reading Mapping using builder pattern
Month: June 2025
PUT example
In this post under Spring REST Template, I will show with example how to perform http PUT operation. For our example I will be updating a “Post” object with id 1 at resource “http://jsonplaceholder.typicode.com/posts”. Below is the class structure of “Post” class. Post package package7; public class Post { private int id; private String title;…… Continue reading PUT example