我正在尝试启动一个springboot应用程序。但当它启动时,我收到一条错误消息:APPLICATION FAILED TO START
Parameter 1 of constructor in spring_boot.controller.RekeningController required a bean of type 'spring_boot.mappers.RekeningMapper' that could not be
对于目标类的特定属性,我有一个映射器,它需要从源对象内的对象列表中选择一个,并使用不同的mapper类映射它。GameResultDto gameToGameResultDto(Game game, Long idPlayer);
问题是,EventMapper作为private final EventMapper eventMapper;属性在GameMapperImpl中生成,但TransactionMapper不是,因此构建失败,
我们在项目中使用了mapstruct。虽然它适用于域对象的dto (例如具有类似属性的EmployeeDTO to EmployeeData )-但我们需要处理传入的json字符串。toEmployeeFromJsonString( String empString} ;// where empString is a jsonString它不能正常工作,并且我没有从json字符串中获得使用正确属性创建的适当对象(我也尝试过使用jsonobject,但也不起作用)