亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

(附詳細圖)spring-dao.xml文件中這句會出錯:<context:property-placeholder location="classpath:jdbc.properties"/>

詳細內容如下,來這找找解決辦法

http://img1.sycdn.imooc.com//5796bff60001094f09950457.jpg

正在回答

1 回答

ok,解決了。雖然只是細節問題,但依舊花費我不少時間。這里,將解決方法放出來。希望能幫到和我遇到同樣問題的新人吧。

1、出現該問題的直接原因:在spring官方文檔中復制的xml頭部是不完整的。而且因為我的開發工具MyEclipse沒有給我自動增加context解析文件,所以會報錯。在主講老師的xml文件中,是在輸入context由開發工具自動增加的;

2、解決辦法:在spring-dao.xml文件頭部手動增加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,解決了。希望能幫到你^^

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

(附詳細圖)spring-dao.xml文件中這句會出錯:<context:property-placeholder location="classpath:jdbc.properties"/>

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號