課程
/后端開發(fā)
/Java
/Java高并發(fā)秒殺API之業(yè)務(wù)分析與DAO層
詳細(xì)內(nèi)容如下,來這找找解決辦法
2016-07-26
源自:Java高并發(fā)秒殺API之業(yè)務(wù)分析與DAO層
正在回答
ok,解決了。雖然只是細(xì)節(jié)問題,但依舊花費(fèi)我不少時(shí)間。這里,將解決方法放出來。希望能幫到和我遇到同樣問題的新人吧。
1、出現(xiàn)該問題的直接原因:在spring官方文檔中復(fù)制的xml頭部是不完整的。而且因?yàn)槲业拈_發(fā)工具M(jìn)yEclipse沒有給我自動(dòng)增加context解析文件,所以會(huì)報(bào)錯(cuò)。在主講老師的xml文件中,是在輸入context由開發(fā)工具自動(dòng)增加的;
2、解決辦法:在spring-dao.xml文件頭部手動(dòng)增加context解析文件。完整的如下:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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/context
http://www.springframework.org/schema/context/spring-context.xsd">
3、ok,解決了。希望能幫到你^^
舉報(bào)
Java實(shí)現(xiàn)高并發(fā)秒殺API的第一門課,還等什么,趕快來加入吧
1 回答<context:property-placeholder location="classpath:jdbc.properties"/> 含義
1 回答context:property-placeholder標(biāo)簽無效
1 回答為什么找不到spring-dao.xml配置文件
1 回答加載spring-dao.xml時(shí)報(bào)錯(cuò)
2 回答spring-dao.xml問題
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2016-07-26
ok,解決了。雖然只是細(xì)節(jié)問題,但依舊花費(fèi)我不少時(shí)間。這里,將解決方法放出來。希望能幫到和我遇到同樣問題的新人吧。
1、出現(xiàn)該問題的直接原因:在spring官方文檔中復(fù)制的xml頭部是不完整的。而且因?yàn)槲业拈_發(fā)工具M(jìn)yEclipse沒有給我自動(dòng)增加context解析文件,所以會(huì)報(bào)錯(cuò)。在主講老師的xml文件中,是在輸入context由開發(fā)工具自動(dòng)增加的;
2、解決辦法:在spring-dao.xml文件頭部手動(dòng)增加context解析文件。完整的如下:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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/context
http://www.springframework.org/schema/context/spring-context.xsd">
3、ok,解決了。希望能幫到你^^