修改成123.jsp后無法通過myhome訪問?
web.html中的代碼修改成如下
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
? xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
? xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
????????????????????? http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
? version="3.0"
? metadata-complete="true">
??? <welcome-file-list>
<welcome-file>123.jsp</welcome-file>
?</welcome-file-list>
</web-app>
重啟服務器后通過訪問http://localhost:8080/myhome/ 出現
?
HTTP Status 404 - /myhome/
type Status report
message /myhome/
description The requested resource is not available.
?無法獲取的錯誤 求大神給解決一下,一開始通過訪問index.jdp是好用的,改完之后訪問123.jsp都不對了。
2018-11-06
請問這個問題后來是怎么解決的,我把web.xml里面改為haha.jsp也還是不能訪問
2018-08-31
看看是不是你的目錄錯了? WEB-INF? 別寫成WEB_INF了
2017-08-15
試一下 ?<welcome-file>/123.jsp</welcome-file>