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

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

報java.lang.IllegalStateException: Failed to load ApplicationContext; at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:157)

<?
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"

???????
xmlns:
aop
="http://www.springframework.org/schema/aop"

???????
xmlns:
tx
="http://www.springframework.org/schema/tx"

?????????
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

????????http://www.springframework.org/schema/aop

????????http://www.springframework.org/schema/aop/spring-aop.xsd

????????http://www.springframework.org/schema/tx

????????http://www.springframework.org/schema/spring-tx.xsd?"
>


????
<!--?引入外部的屬性文件-->

????
<
context
:property-placeholder?
location
="classpath:jdbc.properties"
/>


????
<!--配置c3p0連接池-->

????
<
bean?
id
="dataSource"?
class
="com.mchange.v2.c3p0.ComboPooledDataSource"
>

????????
<
property?
name
="driverClass"?
value
="${jdbc.dreverClass}"
/>

????????
<
property?
name
="jdbcUrl"?
value
="${jdbc.url}"
/>

????????
<
property?
name
="user"?
value
="${jdbc.username}"
/>

????????
<
property?
name
="password"?
value
="${jdbc.password}"
/>

????
</
bean
>


????
<!--配置業(yè)務層-->

????
<
bean?
id
="accountService"?
class
="cn.muke.spring.demol.AccountServiceImpl"
>

????????
<
property?
name
="accountDao"?
ref
="accountDao"
/>


????
</
bean
>

????
<!--配置DAO的類-->

????
<
bean?
id
="accountDao"?
class
="cn.muke.spring.demol.AccountDaoImpl"
>

????????
<
property?
name
="dataSource"?
ref
="dataSource"
/>

????
</
bean
>

</
beans
>

正在回答

1 回答

AccountDaoImpl 這個類你程序里面有嗎?

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

每個不起舞的日子都是對生命的辜負 提問者

有的有的
2017-08-30 回復 有任何疑惑可以回復我~
#2

IT追夢 回復 每個不起舞的日子都是對生命的辜負 提問者

這個錯誤是你Spring配置文件沒加載,你看下你測試類里面有指定配置文件么
2017-10-01 回復 有任何疑惑可以回復我~
#3

牛奶喝不到純牛奶 回復 每個不起舞的日子都是對生命的辜負 提問者

你這個問題解決沒?我也跟你一樣的錯誤
2018-05-23 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

報java.lang.IllegalStateException: Failed to load ApplicationContext; at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:157)

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

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

幫助反饋 APP下載

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

公眾號

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