Quick

The conversion between Java classes requires only additional annotation, reducing the tedious and error-prone development task

Efficiency

Based on the annotation processors, all of the generation is done at compile time

Conversion

Property conversions are based on getter/setter methods in the class

Compatibility

Support JDK8~17、SpringBoot2~3

Multi-class conversion

Support for a single class to configure multiple type conversions

Conversion between Map and Object

More powerful map-to-object functionality

Other Open Source Project

Latest Version

  • maven
<dependency>
    <groupId>io.github.linpeilie</groupId>
    <artifactId>mapstruct-plus-spring-boot-starter</artifactId>
    <version>1.4.8</version>
</dependency>
  • gradle
implementation group: 'io.github.linpeilie', name: 'mapstruct-plus-spring-boot-starter', version: '1.4.8'

Change Log

1.4.8

  • Fixed the issue where the generated conversion implementation class conflicted when using the default Eclipse jdt.core environment in Vscode;
  • Repackaged javapoet to prevent conflicts with other projects.
  • Upgraded spring-boot-autoconfigure version from 2.7.9 to 2.7.18.

1.4.6

  • Modify the SpringContextUtils class name to prevent conflicts with other project class names;
  • fix #108open in new window : SpringContextUtils#getBeanFactory method changes to static;
  • PRopen in new window : increase annotation batch AutoMappingAutoMappingsReverseAutoMappingReverseAutoMappings features.

1.4.5

  • fix: fiexed an issue where the ReverseAutoMapping configuration did not take effect.

1.4.4

  • fix: fixed a problem with missing classes in some Spring release version.

1.4.3

  • feat: Added spring-lazy option to ComponentModel for lazy loading Spring Beans, resolving mutual dependency issues, and set this option as the default configuration.
  • fix: Fixed the issue where the default configuration for unmappedTargetPolicy was not effective.
  • enhance: Optimized IDEA local development build efficiency, reducing build time and metaspace usage to some extent.Issue #89open in new window

……

Code Warehouse

Participate and contribute

  • Contribution Code: You are welcome to submit an issue or pull requests
  • Maintain Documents: Docs directory under the project directory, welcome to participate in the translation and revision