第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

Spring 4.2 版本支持 CORS ,配置一直報(bào)“Cannot locate

Spring 4.2 版本支持 CORS ,配置一直報(bào)“Cannot locate

慕運(yùn)維8079593 2019-03-20 18:15:47
頭部聲明:<beans xmlns="http://www.springframework.org/schema/beans"    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"    xmlns:context="http://www.springframework.org/schema/context"    xmlns:util="http://www.springframework.org/schema/util" xmlns:mvc="http://www.springframework.org/schema/mvc"    xsi:schemaLocation="      http://www.springframework.org/schema/beans      http://www.springframework.org/schema/beans/spring-beans-4.2.xsd      http://www.springframework.org/schema/util      http://www.springframework.org/schema/util/spring-util-4.2.xsd      http://www.springframework.org/schema/context       http://www.springframework.org/schema/context/spring-context-4.2.xsd      http://www.springframework.org/schema/mvc      http://www.springframework.org/schema/mvc/spring-mvc-4.2.xsd">配置:<mvc:cors>    <mvc:mapping path="/api/v1/**"        allowed-origins="*"        allowed-methods="POST, GET, OPTIONS, DELETE, PUT"        allowed-headers="Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With"        allow-credentials="true" /></mvc:cors>報(bào)錯(cuò):嚴(yán)重: StandardWrapper.Throwable
查看完整描述

3 回答

?
達(dá)令說

TA貢獻(xiàn)1821條經(jīng)驗(yàn) 獲得超6個(gè)贊

這個(gè)困擾了我一整天的問題,我今天上午解決了。
原因:

我在升級(jí)4.2版本的時(shí)候,并沒有直接把`WebContent/WEB-INF/lib`下的 Spring 4.1 版本刪除掉。導(dǎo)致了jar包沖突。

疑問:

其實(shí)我在項(xiàng)目中并沒有導(dǎo)4.1版本的jar包,為什么會(huì)沖突?Tomcat是默認(rèn)加載的lib下面所有的包?


查看完整回答
反對(duì) 回復(fù) 2019-04-19
?
慕哥6287543

TA貢獻(xiàn)1831條經(jīng)驗(yàn) 獲得超10個(gè)贊

我猜會(huì)不會(huì)是xml頭部的schema聲明不對(duì)???你檢查下


查看完整回答
反對(duì) 回復(fù) 2019-04-19
?
月關(guān)寶盒

TA貢獻(xiàn)1772條經(jīng)驗(yàn) 獲得超5個(gè)贊

*xml頭部的schema聲明不對(duì)*


查看完整回答
反對(duì) 回復(fù) 2019-04-19
  • 3 回答
  • 0 關(guān)注
  • 496 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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