用eclipse報js錯誤的同學(xué),這樣修改js引用
<script src="${pageContext.request.contextPath}/resources/script/seckill.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/resources/script/seckill.js" type="text/javascript"></script>
2016-09-30
報404錯誤的試試: http://localhost:8080/seckill/seckill/list
2016-09-30
已采納回答 / 我叫慢慢丶
<web-app ? ? ? ?xmlns="http://xmlns.jcp.org/xml/ns/javaee" ? ? ? ?xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ? ? ? ?xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" ? ? ? ?version="3....
2016-09-24
2、DispatchServlet加載不了。 看了很多說法, 其實關(guān)鍵是要在Delopyment Assembly 里面加上 Maven Dependencies (WEB-INF/lib). 這個目錄要手動在webapp目錄下創(chuàng)建。 至于 listener, 本例spring mvc構(gòu)架是不需要的
3、項目的訪問地址居然 是 http://localhost:8080/seckill/seckill/list
4、視頻里面 SeckillController 里面的list方法上面的@RequestMapping(name = "/list", 這里name其實是value.
3、項目的訪問地址居然 是 http://localhost:8080/seckill/seckill/list
4、視頻里面 SeckillController 里面的list方法上面的@RequestMapping(name = "/list", 這里name其實是value.
2016-09-23
1、Eclipse+ Maven。用Maven創(chuàng)建了一個web項目后,Project Facets 里面Dynamic Web Module系統(tǒng)默認(rèn)是2.3 java用的是1.5。 Eclipse里面還改不了,要去項目目錄下面的.settings目錄下改文件。 老師的列子里面用的3.1 貌似用tomcat 8 才能只支持。
2016-09-23