spring mvc ModelAndView 404的原因

在使用ModelAndView时不要导入


import org.springframework.web.portlet.ModelAndView;

而要导入以下这个包

import org.springframework.web.servlet.ModelAndView;

posted @ 2016-01-24 14:33  devin.ding  阅读(1171)  评论(0编辑  收藏  举报