在web.xml中配置即可,格式如下。
<welcome-file-list>
<welcome-file>hello.jsp</welcome-file>
</welcome-file-list>
把对应的hello.jsp页面放在WebContent下面项目启动的时候就会自动加载了。
在web.xml中配置即可,格式如下。
<welcome-file-list>
<welcome-file>hello.jsp</welcome-file>
</welcome-file-list>
把对应的hello.jsp页面放在WebContent下面项目启动的时候就会自动加载了。