Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of ty 解决方法:将mapper底下的注解@Repository改成@Mapper。