springboot启动报错:Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualif...

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.zxkj.lockserver.dao.CompanyDao' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

原因:MyBatisPlus配置错误 =>@MapperScan("com.zxkj.lockserver.dao")  包路径写错

springboot启动报错:Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualif..._第1张图片

 

转载于:https://www.cnblogs.com/Zhusi/p/11354736.html

你可能感兴趣的:(java,测试,大数据)