Tag

ModelMapper

1 views collected around this technical thread.

Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 21, 2024 · Backend Development

Mastering DTO Mapping in Spring Boot 3 with ModelMapper: A Hands‑On Guide

Learn how to efficiently convert internal entities to external DTOs in Spring Boot 3 using ModelMapper, covering library comparisons, Maven setup, configuration, entity and DTO definitions, service, facade, controller implementation, and advanced features like custom mappings, property skipping, value conversion, and conditional mapping.

DTOJavaModelMapper
0 likes · 8 min read
Mastering DTO Mapping in Spring Boot 3 with ModelMapper: A Hands‑On Guide
macrozheng
macrozheng
May 19, 2023 · Backend Development

Why Upgrading Hutool Can Break Bean Copy and Safer Alternatives

Upgrading the Hutool library from 5.7.2 to 5.8.8 caused unexpected BeanUtil.copyProperties failures due to new validation logic, prompting a detailed analysis of the issue and a comparison of safer object‑mapping approaches such as explicit getters/setters, ModelMapper, and MapStruct.

Backend DevelopmentBeanCopyHutool
0 likes · 6 min read
Why Upgrading Hutool Can Break Bean Copy and Safer Alternatives