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

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

老師您好,這個問題是什么原因???

Error creating bean with name 'dataSource' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'dirverClass' of bean class [com.mchange.v2.c3p0.ComboPooledDataSource]: Bean property 'dirverClass' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

正在回答

5 回答

bean 的dataSource 的dirverClass 屬性,你檢查一下有沒有寫對(配置),

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

趙亞群群 提問者

還是不對呢,我的和老師視頻里面的是一樣的啊。能給我發一份jar包嗎?是不是我的版本問題啊
2016-08-21 回復 有任何疑惑可以回復我~

換jar包吧,我就是這么解決的!

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

慕粉2319084457

換哪個包
2018-07-21 回復 有任何疑惑可以回復我~

hi 怎么解決的呢

Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/core/annotation/AnnotatedElementUtils
?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:529)

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

并不是。。。你這個肯定是前面代碼的問題,因為我就是代碼寫錯了然后抱的錯誤和你一樣。。,我的代碼錯誤是在創建service對象的時候大小寫定義的有問題,所以報了這個錯。。。。

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

趙亞群群 提問者

好的,我看一下,謝謝啦!
2016-09-17 回復 有任何疑惑可以回復我~

我也遇到這個問題了

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

趙亞群群 提問者

應該是版本的問題吧,你看看你的hibernate是什么版本的,實在不行的話,就直接用myeclpse搭建ssh框架就行了。
2016-09-02 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

老師您好,這個問題是什么原因啊?

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

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

幫助反饋 APP下載

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

公眾號

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