异常原因:
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.orange.basic.mapper.SysUserMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
解决方法:
mybatis配置文件的
@MapperScan({"com.orange.order.data.mapper"})
路径错误,修改后即正常了。