Title: MapStruct - Using Default Values
Open Graph Title: MapStruct - Using Default Values
Description: Using Mapstruct we can pass the default value in case source property is null using defaultValue attribute of @Mapping annotation. Here Following example demonstrates the same.
Open Graph Description: Using Mapstruct we can pass the default value in case source property is null using defaultValue attribute of @Mapping annotation. Here Following example demonstrates the same.
Opengraph URL: https://www.tutorialspoint.com/mapstruct/mapstruct_using_defaultvalue.htm
Domain: www.tutorialspoint.com
| None | IE=edge |
| og:type | article |
| og:image | https://www.tutorialspoint.com/images/tp_logo_436.png |
Links:
Viewport: viewport-fit=cover, width=device-width, initial-scale=1.0, maximum-scale=3.0, user-scalable=yes