Skip to content

Code Recipes Blog

Welcome to Programming Learning Center.

Month: June 2025

Mapping using builder pattern

June 6, 2025June 6, 2025 Posted in MapStructLeave a comment

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

MapStruct

PUT example

June 6, 2025 Posted in Spring RestTemplateLeave a comment

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

Spring RestTemplate

Posts navigation

Next Posts
  • JCache
  • PowerMock
  • Java Scripting
  • Jackson
    • JSON
      • Streaming
      • Binding
      • Object Model
    • YAML
      • Streaming
      • Binding
  • Hibernate
    • ORM
  • JSONP
    • Object Model
    • Streaming
    • JSON Pointer
    • JSON Patch
  • Mockito
  • Java
    • Zip
    • GZip
    • Printer
    • Jar
    • Logging
    • DateTime
    • Core
      • String
      • Reflection
      • Interface
      • NIO
      • IO
      • Function
      • Collections
      • Record
      • Sealed
    • Security
  • JAXB
  • Quartz Scheduler
  • JAX-RS
  • Gradle
  • JSONB
    • Common
    • Deserialization
    • Serialization
  • JAXP
    • SAX
    • DOM
  • Spring Batch
    • Non-XML
    • XML
  • JQuery
  • Gson
    • Object Binding
    • JSON streaming
    • General
  • Apache Common Collections
  • Spring Framework
    • Spring Core
    • SpEL
  • YamlBeans
  • JMS
  • Java Mail
  • RxJava
    • Observable
    • Observer
  • Jsoup
  • Spring Retry
    • Annotation
    • XML Configuration
      • Non Spring AOP
      • Spring AOP
    • Builder Pattern
  • Apache Pool
  • JUnit 5
  • JJWT
  • JAX-RS Client
  • Apache Excel
  • Lombok
  • TestContainers
  • DotEnv
  • Spring WebClient
  • Passay
  • Java LDAP
  • MapStruct
  • BastiaanJansen OTP
  • Apache Commons IO
    • IO Utils
  • Spring RestTemplate
  • Index By Month
  • Index By Category
  • About
Blog at WordPress.com. Code Recipes Blog
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • Code Recipes Blog
    • Already have a WordPress.com account? Log in now.
    • Code Recipes Blog
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar