spring mvc使用ModelAndView时发生No request handling method with name '方法 名' in class [类名]的错误

我日,下午关于标题错误查了好久,网上啥说法都有,

后来发现是ModelAndView的路径引错了

正确路径应该为:

import org.springframework.web.servlet.ModelAndView;

特写笔记,纪念这个错误

猜你喜欢

转载自www.cnblogs.com/yinyl/p/8856089.html