springboot启动报错org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifyin

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.tzq.logindemo.mapper.UsersMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

springboot启动报错org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifyin_第1张图片
原来是启动类上忘记加@MapperScan

你可能感兴趣的:(springboot启动报错org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifyin)