老師您好,這個(gè)問題是什么原因?。?/h1>
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?
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?
2016-08-20
bean 的dataSource 的dirverClass 屬性,你檢查一下有沒有寫對(duì)(配置),
2017-09-21
換jar包吧,我就是這么解決的!
2016-10-03
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)
2016-09-09
并不是。。。你這個(gè)肯定是前面代碼的問題,因?yàn)槲揖褪谴a寫錯(cuò)了然后抱的錯(cuò)誤和你一樣。。,我的代碼錯(cuò)誤是在創(chuàng)建service對(duì)象的時(shí)候大小寫定義的有問題,所以報(bào)了這個(gè)錯(cuò)。。。。
2016-09-01
我也遇到這個(gè)問題了