发布网友 发布时间:2023-04-09 23:26
共1个回答
热心网友 时间:2023-09-12 10:27
@[TOC](mybatis报错Unsatisfied dependency expressed through field 'baseMapper'解决方案 )
在启动项目的时候报错:Unsatisfied dependency expressed through field 'baseMapper'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.yg.market.ware..PurchaseDao' available: expected at least 1 bean which qualifies as autowire candidate
1 可能启动没有添加@MapperScan(com.yg.) 扫描注解
1 可能xml文件里映射的路径写错了
作为程序员第 198 篇文章,每次写一句歌词记录一下,看看人生有几首歌的时间,wahahaha ...