具体报错是这样
No qualifying bean of type 'com..xxMapper' available: expected at least 1 bean which qualifies as autowire candidate Dependency annotations:{@org.springframework.beans.factory.annotation.Autowired(required=true)}
首先,先翻译一下,大概意思是
没有这个“com..xxMapper”类型的合格bean,可供mapper.xx映射器可用:希望至少有1个bean,它才可以作为自动连线 (Dependency后面的是依赖就不翻译了)
这段报错 ,简单来讲就是有一个" com..xxMapper" ,这个mapper ,我spring 找不到,或者说没有映射到,你赶紧看一下配置什么的,是不是忘记配了
一般报这个错就是没配置好mapper的映射
所以解决方法
先将这个报错的mapper找到,如上图红框
再去 这个mapper里面 加上 @Mapper ,如下图红框,就好了
更多推荐
Noqualifyingbeanoftype‘com..xxMapper‘available:expectedatleast1beanwhichqualifie
发布评论