@Mapping @Mapper Error No source parameter(s) exists

She*_*een 4 java mapping spring-boot mapstruct

I have been shifting my project from spring to Spring Boot and introducing embedded tomcat there were some adaptations i have to do Only issue i am facing in my Old project i have Mapper interface.

and when i compile project it start giving error

Error:(12, 5) java: No property named "schoolId" exists in source parameter(s).

I have search alot about it some said lombok dependency placement in pom i tried placing it before and after map-struct dependency but error is still here

Following is my class

在此输入图像描述

Following is error i am facing

在此输入图像描述

tur*_*ong 9

我认为您应该在 pom.xml 文件中重新排序lombok和mapstruct依赖项,并且它可以正常工作。

严格排序应该是这样的

  1. 龙目岛
  2. 映射结构

在此输入图像描述