在你的web.xml中加上一句话就可以了
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
我不知道你的服务器是什么,如果是Tomcat,也许你可以不用加,
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
我不知道你的服务器是什么,如果是Tomcat,也许你可以不用加,
web.xml的位置:web指向的目录/WEB-INF/web.xml