try this:
<mvc:view-controller path="/" view-name="index">
make sure: add request mapping in a controller class, like this:
@RequestMapping("/index")
public String index(Model model){
return "index";// which mapping to index.jsp by viewResolver
}
spring mvc 跳转首页
猜你喜欢
转载自endual.iteye.com/blog/1987728
今日推荐
周排行