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

错误

在这里插入图片描述

***************************
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.

处理

找到@MapperScan ,是扫描mapper类的注解,后面添加上找不到那个mapper的路径
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/Ls66666Ls/article/details/131456224