Caused by: java.lang.IllegalArgumentException: @ComponentScan ANNOTATION type filter requires an annotation type: interface org.springframework.web.servlet.mvc.Controller
解决方案:检查导入的Controller类型,正确的路径为下面的
import org.springframework.stereotype.Controller;