I want to map a Target object with no source object using MapStruct. I tried it, but getting the below error.
Can't generate mapping method with no input arguments
Mapper code
public interface MyMapper {
@Mapping(target="student.courseName", constant="Master in Science")
Target map();
}