TOMCAT 404错误:原始服务器未找到目标资源的当前表示,或不愿意透露存在的一种表示形式

时间:2019-05-17 10:38:59

标签: java

当我尝试创建一个简单的程序“ Hello world”并使用tomcatV9.0运行该程序时,出现一条错误消息,说明“原始服务器找不到目标资源的当前表示或不愿透露。那一个存在。'

我不知道哪里出错了。

创建的Index.html:

<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
  <p>   Hello world </p>
</body>
</html>

和web.xml :(自动生成)

<?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_3_1.xsd" id="WebApp_ID" version="3.1">
  <display-name>DemoApp</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>

不是在浏览器中显示helloworld,而是显示错误(404错误):原始服​​务器未找到目标资源的当前表示或不愿意透露其存在

0 个答案:

没有答案