实现原理图解
实现原理
前端http请求java服务端–> 找到web.xml–>查看是否存在welcome-file-list标签下的welcome-file–>如果存在.找到值并返回给前端页面
实现步骤
找到web.xml添加如下代码index.jsp为你要设置为欢迎页的名称
<welcome-file-list><welcome-file>index.jsp</welcome-file></welcome-file-list>
时间:2023-02-21 12:00:37
前端http请求java服务端–> 找到web.xml–>查看是否存在welcome-file-list标签下的welcome-file–>如果存在.找到值并返回给前端页面
index.jsp为你要设置为欢迎页的名称
<welcome-file-list><welcome-file>index.jsp</welcome-file></welcome-file-list>