第一种:
默认的是index.jsp页面,放在webapp文件夹下
在web.xml配置如下
第二种:
默认的页面不是放在webapp文件夹下,而是放在web-inf下,那么此时可以用springMVC方式
已home为例:
效果: