The conversion between Java classes requires only additional annotation, reducing the tedious and error-prone development task
Based on the annotation processors, all of the generation is done at compile time
Property conversions are based on getter/setter methods in the class
Support JDK8~17、SpringBoot2~3
Support for a single class to configure multiple type conversions
More powerful map-to-object functionality
<dependency>
<groupId>io.github.linpeilie</groupId>
<artifactId>mapstruct-plus-spring-boot-starter</artifactId>
<version>1.5.0</version>
</dependency>
implementation group: 'io.github.linpeilie', name: 'mapstruct-plus-spring-boot-starter', version: '1.5.0'
In MapStruct 1.6, support for presence checks on source parameters was added. This means that even if you want to map a source parameter directly to a target property, you must now define the presence check method using the new
@SourceParameterCondition
annotation or@Condition(appliesTo = ConditionStrategy.SOURCE_PARAMETERS)
.
Eclipse jdt.core
environment in Vscode;javapoet
to prevent conflicts with other projects.SpringContextUtils
class name to prevent conflicts with other project class names;AutoMapping
、AutoMappings
、ReverseAutoMapping
、ReverseAutoMappings
features.……