在springMvc-servlet中加入:
<context:component-scan base-package="gywork.springMVC01.controller,gywork.springMVC01.service"></context:component-scan>
在接口实现类中加入标注:@Service,即可解决