首页 > 代码库 > mvc:view-controller

mvc:view-controller

@RequestMapping("/index")    public ModelAndView gotoIdex(){       ModelAndView mav = new ModelAndView();           mav.setViewName("/modules/front/index");       return mav;    }

springmvc-servlet

<!-- 请求根时,自动转发到index的action -->
<mvc:view-controller path="/" view-name="forward:/index"/>

mvc:view-controller