SpringBoot启动报错:Field userDao in com.sd.sbmb.service.impl.UserServiceImpl required a bean of type 'com.sd.sbmb.dao.UserDao' that could not be found.
报错原因:下面@MapperScan的注解扫描的路径错了
解决办法:修改成正确的路径即可,这个是扫描dao接口的路径
SpringBoot启动报错:Field userDao in com.sd.sbmb.service.impl.UserServiceImpl required a bean of type 'com.sd.sbmb.dao.UserDao' that could not be found.
报错原因:下面@MapperScan的注解扫描的路径错了
解决办法:修改成正确的路径即可,这个是扫描dao接口的路径