課程
/后端開發(fā)
/Java
/Java高并發(fā)秒殺API之web層
<mvc:default-servlet-handler/>報錯是怎么回事呀
2017-04-21
源自:Java高并發(fā)秒殺API之web層 2-2
正在回答
應該是你的scheme引用錯了
<beans?xmlns="http://www.springframework.org/schema/beans" ???????xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"?xmlns:mvc="http://www.springframework.org/schema/mvc" ???????xmlns:context="http://www.springframework.org/schema/context" ???????xsi:schemaLocation="http://www.springframework.org/schema/beans ???????http://www.springframework.org/schema/beans/spring-beans.xsd ????????http://www.springframework.org/schema/mvc ????????http://www.springframework.org/schema/mvc/spring-mvc.xsd ????????http://www.springframework.org/schema/context ????????http://www.springframework.org/schema/context/spring-context.xsd">
把你spring-web.xml 里頭的頭換了試下
小呆888 提問者
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:default-servlet-hander'.
紫楓fhq
紫楓fhq 回復 紫楓fhq
你在bean中導入的xmlns錯了,以下都是錯的。
xmlns:mvc="http://www.springframework.org/schema/cache"???<!--錯誤的xmlns--> xmlns:mvc="http://www.springframework.org/schema/tx"??????<!--錯誤的xmlns--> xmlns:mvc="http://www.springframework.org/schema/task"????<!--錯誤的xmlns-->
正確的是以mvc結尾的。
xmlns:mvc="?????<!--正確的xmlns-->
gtrfans
舉報
Java實現(xiàn)高并發(fā)秒殺API的第三門課,介紹Web層的設計和實現(xiàn)
2 回答<mvc:default-servlet-handler/>
4 回答<mvc:default-servlet-handler />不起作用
2 回答出現(xiàn)錯誤,這是怎么回事呢?
1 回答javax.el.PropertyNotFoundException 這是怎么回事???
2 回答怎么回事?無法獲得當前時間,控制臺報錯(404)
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學習伙伴
掃描二維碼關注慕課網(wǎng)微信公眾號
2017-04-21
應該是你的scheme引用錯了
把你spring-web.xml 里頭的頭換了試下
2018-05-14
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:default-servlet-hander'.
2017-04-21
你在bean中導入的xmlns錯了,以下都是錯的。
正確的是以mvc結尾的。