赵亚群群
2016-08-16 07:57
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?
bean 的dataSource 的dirverClass 属性,你检查一下有没有写对(配置),
换jar包吧,我就是这么解决的!
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)
并不是。。。你这个肯定是前面代码的问题,因为我就是代码写错了然后抱的错误和你一样。。,我的代码错误是在创建service对象的时候大小写定义的有问题,所以报了这个错。。。。
我也遇到这个问题了
基于SSH实现员工管理系统之框架整合篇
49832 学习 · 344 问题
相似问题