引入mapstruct-plus-spring-boot-starter依赖: <properties><mapstruct-plus.version>1.1.3</mapstruct-plus.version></properties><dependencies><dependency><groupId>io.github.linpeilie</groupId><artifactId>mapstruct-plus-spring-boot-starter</artifactId><version>${mapstruct-plus.version}</version></dependen...
引入mapstruct-plus-spring-boot-starter依赖: <properties><mapstruct-plus.version>1.1.3</mapstruct-plus.version></properties><dependencies><dependency><groupId>io.github.linpeilie</groupId><artifactId>mapstruct-plus-spring-boot-starter</artifactId><version>${mapstruct-plus.version}</version></dependen...
compile'org.mapstruct:mapstruct:1.4.2.Final'compile'io.github.zhaord:mapstruct-spring-plus-boot-starter:1.0.1.RELEASE'annotationProcessor'org.mapstruct:mapstruct-processor:1.4.2.Final'testAnnotationProcessor'org.mapstruct:mapstruct-processor:1.4.2.Final'// if you are using mapstruct in test codeannotat...
推荐mapstruct-spring-plus 地址:https://github.com/ZhaoRd/mapstruct-spring-plus 这个项目参考了mapstruct-spring-extensions项目,同时使用APT技术,动态生成Mapper接口,解决编写接口的问题,提供IObejctMapper接口,提供所有的map方法。 maven引入 <properties><org.mapstruct.version>1.4.2.Final</org.mapstruct.version><...
<artifactId>mapstruct-plus-spring-boot-starter</artifactId> <version>${mapstruct-plus.version}</version> </dependency> <dependency> <groupId>com.github.xiaoymin</groupId> <artifactId>knife4j-openapi2-spring-boot-starter</artifactId> <version>4.0.0</version> ...
dependencies{... compile'org.mapstruct:mapstruct:1.4.2.Final'compile'io.github.zhaord:mapstruct-spring-plus-boot-starter:1.0.1.RELEASE'annotationProcessor'org.mapstruct:mapstruct-processor:1.4.2.Final'testAnnotationProcessor'org.mapstruct:mapstruct-processor:1.4.2.Final'//if you are using mapstruct in...
implementationgroup:'io.github.linpeilie',name:'mapstruct-plus-spring-boot-starter',version:'1.4.1' feat:AutoMapper注解增加mapperNameSuffix属性,支持配置生成的转换接口名称增加后缀,默认规则下生成的反向转换接口同时生效; feat : 适配Mapper注解的unmappedSourcePolicy、unmappedTargetPolicy、typeConversionPolic...
{org.mapstruct.version}</version></dependency><dependency><groupId>io.github.zhaord</groupId><artifactId>mapstruct-spring-plus-boot-starter</artifactId><version>${io.github.zhaord.version}</version></dependency></dependencies>...<build><plugins><plugin><groupId>org.apache.maven.plugins</...
<dependency><groupId>io.github.zhaord</groupId><artifactId>mapstruct-spring-plus-boot-starter</artifactId><version>1.0.1.RELEASE</version></dependency> 3 示例 3.1 关于依赖 3.1.1 Maven SpringBoot单模块项目:直接在POM文件加入相关依赖即可。
compile 'io.github.zhaord:mapstruct-spring-plus-boot-starter:1.0.1.RELEASE' 代码语言:txt 复制 annotationProcessor 'org.mapstruct:mapstruct-processor:1.4.2.Final' 代码语言:txt 复制 testAnnotationProcessor 'org.mapstruct:mapstruct-processor:1.4.2.Final' // if you are using mapstruct in test code ...