MapStruct报Unknown property错误
使用MapStruct时编译正常,但build时提示如下错误
Unknown property "xxx" in result type xxx. Did you mean "null"?
解决方案:
添加lombok-mapstruct-binding的赖
<!-- mapStruct-lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok-mapstruct-binding</artifactId>
<version>0.2.0</version>
<scope>provided</scope>
</dependency>