Java Mapstruct自动生成映射器实现的问题

Java Mapstruct自动生成映射器实现的问题,java,eclipse,maven,spring-boot,mapstruct,Java,Eclipse,Maven,Spring Boot,Mapstruct,我使用Mapstruct进行DTO到实体的转换,反之亦然。一切正常,应用程序也在运行。但我不知道eclipse有什么问题。在运行mvn clean install之后,我在“target/generated sources”中获得了一个Mapper实现类,但它是通过编译时错误实现的。在“src/main/java”中找不到任何类 有人能提出一些解决方案吗?你试过设置吗 <properties> <!-- automatically run annotation proces

我使用Mapstruct进行DTO到实体的转换,反之亦然。一切正常,应用程序也在运行。但我不知道eclipse有什么问题。在运行mvn clean install之后,我在“target/generated sources”中获得了一个Mapper实现类,但它是通过编译时错误实现的。在“src/main/java”中找不到任何类

有人能提出一些解决方案吗?

你试过设置吗

<properties>
  <!-- automatically run annotation processors within the incremental compilation -->
  <m2e.apt.activation>jdt_apt</m2e.apt.activation>
</properties>

jdt_公寓
在您的maven中,这样Eclipse就可以改进注释处理器

请查看MapStruct网站的部分