-1
戻り型org.springframework.data.domain.Pageに実装タイプが登録されていません。Mapstruct戻り型
@Mapper(componentModel = "spring", uses = { OptionalMapper.class, VehicleImageMapper.class, GearShiftMapper.class,
FuelMapper.class, ColorMapper.class, ModelMapper.class, UserMapper.class })
public interface VehicleMapper {
VehicleMapper INSTANCE = Mappers.getMapper(VehicleMapper.class);
VehicleDTO vehicletoVehicleDTO(Vehicle vehicle);
Page<VehicleDTO> vehicletoVehicleDTO(Page<Vehicle> vehicles);
Iterable<VehicleDTO> vehicletoVehicleDTO(Iterable<Vehicle> vehicles);
Vehicle vehicleDTOtoVehicle(VehicleDTO vehicleDTO);
}
マイサービス...
@Override
public Page<VehicleDTO> searchVehiclesByPage(Pageable page) {
Page<VehicleDTO> vehicles = vehicleMapper.vehicletoPageVehicleDTO(vehicleRepository.findAllByEnabled(page));
return vehicles;
}
は、誰かがplzは私を助けることができますか?