web.xml文件中配置新的欢迎页面而不是默认的index.html出现Cannot find declaration to go to,不能跳转到我希望的servlet
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
version="4.0">
<!--配置欢迎页面-->
<welcome-file-list>
<welcome-file>welcome</welcome-file>
</welcome-file-list>
</web-app>
运行结果及报错内容
我的解答思路和尝试过的方法
网上所说的重启大法还有修改tomcat的配置文件
我想要达到的结果
可以成功跳转