expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
解决方法:
在配置文件中加入自动扫描service实现类的配置
<context:component-scan base-package="com.hzy.service.impl"/>