IDE报错:FAIL - Deployed application at context path / but context failed to start
编译通过,这个错误原因是很多地方被误用,导致Spring运行时不能解析某些Class导致,
例如:ModelAndView用错
public ModelAndView GetIndex(ModelAndView mav)
这里ModelAndView用错了,不能定义在参数中。
例如:@Autowired定义错,应该定义接口,但是定义在Class上,或者那个Class没有实现接口等等诸如此类,需要小心。