私は基本的なHello Worldの動的プロジェクトにApacheサーバーをインストールしました。私のWebプロジェクトでweb.xmlを見る方法
<display-name>hello</display-name>
<welcome-file-list>
<welcome-file>hello.html</welcome-file>
</welcome-file-list>
Web.xmlのコンテンツがあり、
私のディレクトリ構造があり、
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
Hello World!!
</body>
</html>
私のApacheを起動した後、私がしようとしていますURLにアクセスします。
http://localhost:8080/hello.html
Gettiエラー:HTTPステータス404 - /hello.html
提案がありますか?
プロジェクトディレクトリにはhello.xmlはありません。正しいURLはhttp:// localhost:8080/hello.htmlです。 – KayV