正在使用的技术堆栈:
最初,当我删除getter和setter并添加@Getter和@Setter注释时,mapstruct无法找到该属性并声明:Unknown property "id" in result type com.vg.once.dto.OneDto.我了解到Lombok1.16.14或更高版本
因此,我在我的maven项目中使用了mapstruct。下面是我的应用程序pom.xml配置:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001-- IntelliJ pre 2018.1.1 requires the mapstruct<