No qualifying bean of type xxx’ available 的一种解决方法: 查看各层类有没有@Controller , @Service ,@repository ,@Component等注解,在看看是否扫描到了,最好是填写详细包路径 <!--开启spring注解,扫描spring注解所在的包 --> <context:component-scan base-package="com.jerry.service.impl"/>