@org.springframework.beans.factory.annotation.Autowired(required=true)

错误原因:启动类没有扫描到写好的mapper

解决方法:

1、先看sevice层,你有没有加上@Service注解。
2、再看mapper层有没有加上@Mapper注解,重点!:在启动类上有没有加上@MapperScan来扫描mapepr

posted @ 2022-09-15 18:50  凤梨小屋  阅读(187)  评论(0)    收藏  举报