问题

在Spring MVC的学习中,在以ModelAndView作为目标方法的返回值时,运行的结果一直出现404的问题,提示jsp找不到。
使用ModelAndView解析jsp错误

解决方法:

import org.springframework.web.portlet.ModelAndView;

改成:import org.springframework.web.servlet.ModelAndView;

相关文章:

  • 2021-10-19
  • 2021-11-02
  • 2022-01-18
  • 2021-10-11
  • 2021-07-09
  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-11
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
  • 2021-07-29
相关资源
相似解决方案