安徽六安瓜片是什么茶,seo技术培训南阳,建德网站建设德品牌网,搜索引擎wordpress在mapStruct上边#xff0c;如果我们要切换成非默认的组件模式#xff0c;常常要在Mapper注释中添加componentModel spring#xff0c;如果类太多的了的话#xff0c;非常麻烦#xff0c;有没有更好的方式呢#xff0c;有的#xff0c;可以在pom中添加一个…在mapStruct上边如果我们要切换成非默认的组件模式常常要在Mapper注释中添加componentModel spring如果类太多的了的话非常麻烦有没有更好的方式呢有的可以在pom中添加一个编译参数这样就不用每个Mapper注解添加componentModel属性了
plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId versionxxx/version configuration source1.8/source target1.8/target annotationProcessorPaths path groupIdorg.projectlombok/groupId artifactIdlombok/artifactId versionxxx/version /path path groupIdorg.mapstruct/groupId artifactIdmapstruct-processor/artifactId versionxxx/version /path /annotationProcessorPaths compilerArgs compilerArg -Amapstruct.defaultComponentModelspring /compilerArg /compilerArgs /configuration /plugin