How to inject(custructor) a spring bean into abstract mapper of Mapstruct?
问题 I am having below mapper class in which I want to use CounterService . I am trying constructor injection but that's not working and null is printing. @Mapper(componentModel = "spring", uses = CounterService.class, injectionStrategy = InjectionStrategy.CONSTRUCTOR) public abstract class CarMapper { private CounterService counterService; public CarMapper(CounterService counterService) { this.counterService = counterService; } public abstract Car dtoToEntity(CarDto carDto); public CarDto