解决:Field xxMapper in xx.xxServiceImpl required a bean of type ‘xx.xxMapper‘ that could not be found.

mistake

insert image description here

***************************
APPLICATION FAILED TO START
***************************

Description:

Field jobMapper in com.ruoyi.quartz.service.impl.SysJobServiceImpl required a bean of type 'com.ruoyi.quartz.mapper.SysJobMapper' that could not be found.

The injection point has the following annotations:
	- @org.springframework.beans.factory.annotation.Autowired(required=true)


Action:

Consider defining a bean of type 'com.ruoyi.quartz.mapper.SysJobMapper' in your configuration.

deal with

Find @MapperScan, which is to scan the annotation of the mapper class, and then add the path where the mapper cannot be found
insert image description here

Guess you like

Origin blog.csdn.net/Ls66666Ls/article/details/131456224