@Autowired找不到service的问题

在springMvc-servlet中加入:

  <context:component-scan base-package="gywork.springMVC01.controller,gywork.springMVC01.service"></context:component-scan>

在接口实现类中加入标注:@Service,即可解决 

原文地址:https://www.cnblogs.com/engine/p/4383568.html