还是那个问题。保存web.xml文件特别慢,卡死,直接就未响应
我在网上查了一下,说是xml文件的头描述 必须对应servlet版本一致。还有tomcat必须支持才行。问题是我都一样啊。上次说头描述有空格需要弄一下。结果没用,最后老师说用注解,但是现在需要配置文件了。卡死顶不住了。还有解决办法吗老师?求老师救救孩子吧。
我的jdk是15,tomcat是9,servlet是4.0
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
id="WebApp_ID" version="4.0">
<display-name>js</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>
正在回答
同学你好,1、同学尝试换一个版本看看还是会造成卡顿吗。
2、造成卡顿的问题也有可能是Eclipse工具的问题,同学可以尝试换一个Eclipse再来试试。
祝学习愉快!
- 参与学习 人
- 提交作业 9401 份
- 解答问题 16556 个
综合就业常年第一,编程排行常年霸榜,无需脱产即可学习,北上广深月薪过万 无论你是未就业的学生还是想转行的在职人员,不需要基础,只要你有梦想,想高薪
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星