Ошибка: ошибка квалификатора. Метод не найден, аннотированный с @именованным значением: [
mapClientInformation]. См. Https://mapstruct.org/faq/#qualifier для
Подробнее.
Код: Выделить всё
org.mapstruct
mapstruct
${org.mapstruct.version}
< /code>
Файл Mapper: < /p>
@Mapper(componentModel = "spring", imports = {PhoneUtil.class, DateUtil.class})
public interface RequestMapper {
@Mapping(target = "provider", source = "testRequestBody", qualifiedByName = "mapProvider")
@Mapping(target = "entities", source = "testRequestBody", qualifiedByName = "mapEntities")
EncryptedInstrument toDecryptedRequest(TestRequestBody testRequestBody);
@Named("mapEntities")
default List mapEntities(TestRequestBody testRequestBody) {
return Collections.singletonList(mapEntity(testRequestBody));
}
@Named("mapEntity")
........
@Named("mapProvider")
@Mapping(target = "issuerClientInformation", source = "testRequestBody", qualifiedByName = "mapClientInformation")
EncryptedInstrumentProvider mapProvider(TestRequestBody testRequestBody);
@Named("mapClientInformation")
@Mapping(target = "source", constant = "ISSUER")
ClientInformation mapClientInformation(TestRequestBody testRequestBody);
}
Подробнее здесь: https://stackoverflow.com/questions/797 ... pclientinf
Мобильная версия