提示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 {
】
2019-05-05
你的目錄結構可能有問題,你可以看下這個類MybatisPlusConfig.java,這里面會掃描mapper類,但是目錄需要是這種com.stylefeng.guns.modular.*.dao