问答详情
源自:2-4 Guns根据条件查询功能实现

提示Autowired(required=true)}

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.stylefeng.guns.custom.modular.system.dao.CustomHouseMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)} 然后我在 dao 下面的 CustomHouseMapper 添加一个实现类 CustomHouseMapperImpl 这样就能启动了。可是这样做,所有的方法我又得重新自己写一遍。。。。。。。。。尴尬【

@Repository

public class CustomHouseMapperImpl implements CustomHouseMapper {


提问者:qq_Q先生_0 2018-06-25 19:21

个回答

  • qq_寒塘_0
    2019-05-05 15:35:53

    你的目录结构可能有问题,你可以看下这个类MybatisPlusConfig.java,这里面会扫描mapper类,但是目录需要是这种com.stylefeng.guns.modular.*.dao