mirror of
https://gitee.com/easii/mapstruct-plus.git
synced 2025-12-07 17:48:35 +08:00
fixbug: 解决当只有AutoMappers时没有生成转换接口的问题
This commit is contained in:
parent
2f94254499
commit
f9cc95fb55
@ -125,7 +125,8 @@ public class AutoMapperProcessor extends AbstractProcessor {
|
||||
boolean hasAutoMapper = annotations.stream().anyMatch(this::isAutoMapperAnnotation);
|
||||
final boolean hasAutoMapMapper = annotations.stream().anyMatch(this::isAutoMapMapperAnnotation);
|
||||
final boolean hasAutoEnumMapper = annotations.stream().anyMatch(this::isAutoEnumMapperAnnotation);
|
||||
if (!hasAutoMapper && !hasAutoMapMapper && !hasAutoEnumMapper) {
|
||||
final boolean hasAutoMapMappers = annotations.stream().anyMatch(this::isAutoMappersAnnotation);
|
||||
if (!hasAutoMapper && !hasAutoMapMapper && !hasAutoEnumMapper && !hasAutoMapMappers) {
|
||||
return false;
|
||||
}
|
||||
// 刷新配置
|
||||
|
||||
2
pom.xml
2
pom.xml
@ -17,7 +17,7 @@
|
||||
</modules>
|
||||
|
||||
<properties>
|
||||
<mapstruct-plus.version>1.2.3</mapstruct-plus.version>
|
||||
<mapstruct-plus.version>1.2.4</mapstruct-plus.version>
|
||||
<maven.compiler.source>8</maven.compiler.source>
|
||||
<maven.compiler.target>8</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user