最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

為啥是404?

問題一 項(xiàng)目jsp會(huì)報(bào)錯(cuò) The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
解決辦法:web工程-》屬性或Build Path-》Java Build Path->Libraries-> Add Libray...->Server Runtime -》Apache tomcat ?7.0 -》finish

問題二 有兩個(gè)包需要加,不然會(huì)報(bào)錯(cuò)。教程里沒有說。

failed; nested exception is java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config

解決:

<!-- JstlView必須的兩個(gè)jar -->

<dependency>

? ?<groupId>jstl</groupId>

? ?<artifactId>jstl</artifactId>

? ?<version>1.2</version>

</dependency>

<dependency>

? ?<groupId>taglibs</groupId>

? ?<artifactId>standard</artifactId>

? ?<version>1.1.2</version>

</dependency>

問題三 訪問路徑 在tomcat里必須要有項(xiàng)目名稱 不然會(huì)404(教程里是http://localhost:8080/hello/mvc)

應(yīng)該是http://localhost:8080/spring-mvc-study/hello/mvc 才可以訪問

不懂jetty,希望知道的人可以告訴我這是不是tomcat和jetty的差別。


正在回答

4 回答

大神,我用的也是tomcat,但是報(bào)404,

訪問地址: http://localhost:8080/ZLearnSpringMvc/hello/mvc

ZLearnSpringMvc是我的項(xiàng)目名,請(qǐng)問哪里的問題,求解答。。

http://img1.sycdn.imooc.com//59133f1d0001cfe816520368.jpg

0 回復(fù) 有任何疑惑可以回復(fù)我~

非常贊!

0 回復(fù) 有任何疑惑可以回復(fù)我~

問題一 項(xiàng)目jsp會(huì)報(bào)錯(cuò) The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
解決辦法:web工程-》屬性或Build Path-》Java Build Path->Libraries-> Add Libray...->Server Runtime -》Apache tomcat ?7.0 -》finish

問題二 有兩個(gè)包需要加,不然會(huì)報(bào)錯(cuò)。教程里沒有說。

failed; nested exception is java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config

解決:

<!-- JstlView必須的兩個(gè)jar -->

<dependency>

? ?<groupId>jstl</groupId>

? ?<artifactId>jstl</artifactId>

? ?<version>1.2</version>

</dependency>

<dependency>

? ?<groupId>taglibs</groupId>

? ?<artifactId>standard</artifactId>

? ?<version>1.1.2</version>

</dependency>

問題三 訪問路徑 在tomcat里必須要有項(xiàng)目名稱 不然會(huì)404(教程里是http://localhost:8080/hello/mvc)

應(yīng)該是http://localhost:8080/spring-mvc-study/hello/mvc 才可以訪問

不懂jetty,希望知道的人可以告訴我這是不是tomcat和jetty的差別。


2 回復(fù) 有任何疑惑可以回復(fù)我~
#1

鍵盤兔 提問者

關(guān)于問題3 已經(jīng)知道原因了,可能教程里的老師做了類似的配置:http://blog.csdn.net/henryzhang2009/article/details/39118359
2016-04-06 回復(fù) 有任何疑惑可以回復(fù)我~
#2

qq_不囧_0

終于找到答案了
2018-04-23 回復(fù) 有任何疑惑可以回復(fù)我~

證明服務(wù)器端沒有該文件

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

鍵盤兔 提問者

我按照教程一步一步來的。教程請(qǐng)求路徑就沒有項(xiàng)目根目錄的名稱,我不帶這個(gè)項(xiàng)目名就是404 帶上才能訪問到服務(wù)器
2016-03-31 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

為啥是404?

我要回答 關(guān)注問題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)