一点小问题 求高手帮帮忙
当我访问这个地址的时候http://localhost:8080/sandDemo001/login/heamer
页面是出现错误是/sandDemo001/login/WEB-INF/view/login/hello.jsp 中间多了个login
帮忙看下代码是不是哪弄错了
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"p:prefix="WEB-INF/view" p:suffix=".jsp"></bean>
@RequestMapping(value = "/login/{user}", method = RequestMethod.GET) public ModelAndView myMethod(HttpServletRequest request, HttpServletResponse response, @PathVariable("user") String user, ModelMap modelMap) throws Exception { modelMap.put("loginuser", user); return new ModelAndView("/login/hello", modelMap); }