SpringBoot报错:Could not autowire. No beans of ‘DiscussantMapper’ type found 一、资源 @Mapper和@Repository注解的区别 @Repository 二、解决办法 在Dao层相对应的类中,加入注解@Repository