controller类注入Service类出现Could not autowire. No beans of ‘ProductService’ type found 。 解决方法: Service实现类里添加@Component这样就能找到了