замени все связанное с автомобилями на вендор видеокарт по примеру, который я скидывал ранее:
DriverContriller.java
package ru.edu.penzgtu.lab.Controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import jakarta.validation.constraints.Min;
import lombok.RequiredArgsConstructor;
import org.springframework.http.HttpStatus;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import ru.edu.penzgtu.lab.Baseresponce.BaseResponseService;
import ru.edu.penzgtu.lab.Baseresponce.ResponseWrapper;
import ru.edu.penzgtu.lab.Dto.CarDto;
import ru.edu.penzgtu.lab.Dto.DriverDto;
import ru.edu.penzgtu.lab.Entity.Car;
import ru.edu.penzgtu.lab.Entity.Driver;
import ru.edu.penzgtu.lab.Exception.PenzGtuException;
import ru.edu.penzgtu.lab.Service.CarService;
import ru.edu.penzgtu.lab.Service.DriverService;

import java.util.List;

@Validated
@RestController
@RequestMapping("/drivers")
@RequiredArgsConstructor
@Tag(name = "Водители",description = "Операции над водителями")
public class DriverController {
    private final DriverService driverService;
    private final BaseResponseService baseResponseService;

    @Operation(
            summary = "Получение всех водителей", description = "Позволяет выгрузить всех водителей из БД"
    )

    @GetMapping
    public ResponseWrapper<List<DriverDto>> findAllDriver() {
        return baseResponseService.wrapSuccessResponse(driverService.findAllDrivers());
    }

    @Operation(
            summary = "Получение водителей по ID", description = "Позволяет выгрузить одного водителя по ID из БД"
    )

    @GetMapping("/driver/{id}")
    public ResponseWrapper<DriverDto> getDriverById(@PathVariable @Min(0) Long id) throws PenzGtuException {
        return baseResponseService.wrapSuccessResponse(driverService.findDriverById(id));
    }


    @Operation(
            summary = "Создать водителя", description = "Позволяет создать новую запись о водителя  в БД"
    )

    @PostMapping
    @ResponseStatus(HttpStatus.CREATED)
    public void createDriver(@RequestBody @Valid DriverDto driver){
        driverService.saveDriver(driver);
    }

    @Operation(
            summary = "Обновить данные о водителя ", description = "Позволяет обновить информацию о водителя в БД"
    )

    @PutMapping("/driver/")
    public void updateDriver(@RequestBody @Valid Driver driver) {
        driverService.updateDriver(driver);
    }

    @Operation(
            summary = "Удалить водителя по ID ", description = "Позволяет удалить водителя по ID из БД"
    )

    @DeleteMapping("/driver/{id}")
    @ResponseStatus(HttpStatus.NO_CONTENT)
    public void deleteDriver(@PathVariable @Min(0) Long id) {
        driverService.deleteDriverById(id);
    }
}

CarMapper.java
package ru.edu.penzgtu.lab.Service.Mapper;

import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import ru.edu.penzgtu.lab.Dto.CarDto;
import ru.edu.penzgtu.lab.Entity.Car;

import java.util.List;



@Service
@RequiredArgsConstructor
public class CarMapper {


    public List<CarDto> toListDto(List<Car> cars) {
        return cars.stream().map(this::toDto).toList();
}

    public CarDto toDto(Car car){
        String driverName = car.getDriver() != null ? car.getDriver().getName() : null;

        return CarDto.builder()
                .id(car.getId())
                .name(car.getName())
                .localDateTime(car.getLocalDateTime())
                .yearOfManufacture(car.getYearOfManufacture())
                .color(car.getColor())
                .driverName(driverName)
                .build();
    }
    public Car toEntity(CarDto carDto){
        Car car = new Car();

        car.setId(carDto.getId());
        car.setName(carDto.getName());
        car.setLocalDateTime(carDto.getLocalDateTime());
        car.setYearOfManufacture(carDto.getYearOfManufacture());
        car.setColor(carDto.getColor());


        return car;
    }
}


MarkaMapper.java
package ru.edu.penzgtu.lab.Service.Mapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import ru.edu.penzgtu.lab.Dto.MarkaDto;
import ru.edu.penzgtu.lab.Entity.Marka;

import java.time.LocalDateTime;
import java.util.List;
@Service
@RequiredArgsConstructor
public class MarkaMapper {

    public List<MarkaDto> toListDto(List<Marka> marks) {
        return marks.stream().map(this::toDto).toList();
    }

    public MarkaDto toDto(Marka marka) {
        String countryName = marka.getCountry() != null ? marka.getCountry().getName() : null;


        return MarkaDto.builder()
                .id(marka.getId())
                .name(marka.getName())
                .localDateTime(marka.getLocalDateTime())
                .founder(marka.getFounder())
                .yearOfFound(marka.getYearOfFound())
                .countryName(marka.getCountry().getName())
                .build();
    }
    public Marka toEntity(MarkaDto MarkaDto) {
        Marka marka = new Marka();

        marka.setId(MarkaDto.getId());
        marka.setName(MarkaDto.getName());
        marka.setLocalDateTime(LocalDateTime.now());
        marka.setFounder(MarkaDto.getFounder());
        marka.setYearOfFound(MarkaDto.getYearOfFound());


        return marka;
    }
}

Country.java
package ru.edu.penzgtu.lab.Service.Mapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import ru.edu.penzgtu.lab.Dto.CountryDto;
import ru.edu.penzgtu.lab.Entity.Country;
import ru.edu.penzgtu.lab.Entity.Marka;

import java.util.List;
@Service
@RequiredArgsConstructor
public class CountryMapper {
    public List<CountryDto> toListDto(List<Country> countries) {
        return countries.stream().map(this::toDto).toList();
}
    public CountryDto toDto(Country country) {
        return CountryDto.builder()
                .id(country.getId())
                .name(country.getName())
                .localDateTime(country.getLocalDateTime())
                .capital(country.getCapital())
                .language(country.getLanguage())
                .carBrands(country.getCarBrands().stream()
                        .map(Marka::getName)
                        .toList())
                .build();
    }
    public Country toEntity(CountryDto countryDto) {
        Country country = new Country();

        country.setId( countryDto.getId());
        country.setName( countryDto.getName());
        country.setLocalDateTime(countryDto.getLocalDateTime());
        country.setCapital(countryDto.getCapital());
        country.setLanguage(countryDto.getLanguage());

        return  country;
    }
}

package ru.edu.penzgtu.lab.Service.Mapper;

import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import ru.edu.penzgtu.lab.Dto.DriverDto;
import ru.edu.penzgtu.lab.Entity.Driver;
import ru.edu.penzgtu.lab.Entity.Car;

import java.util.List;
@Service
@RequiredArgsConstructor
public class DriverMapper {

    public List<DriverDto> toListDto(List<Driver> drivers) {
        return drivers.stream().map(this::toDto).toList();
    }

    public DriverDto toDto(Driver driver) {
        return DriverDto.builder()
                .id(driver.getId())
                .name(driver.getName())
                .localDateTime(driver.getLocalDateTime())
                .age(driver.getAge())
                .drivingExperience(driver.getDrivingExperience())
                .cars(driver.getCars().stream()
                        .map(Car::getName)
                        .toList())
                .build();
    }

    public Driver toEntity(DriverDto driverDto) {
        Driver driver = new Driver();

        driver.setId( driverDto.getId());
        driver.setName( driverDto.getName());
        driver.setLocalDateTime(driverDto.getLocalDateTime());
        driver.setAge(driverDto.getAge());
        driver.setDrivingExperience(driverDto.getDrivingExperience());


        return  driver;
    }
}