SSH 配置c3p0出问题

来源:互联网 发布:怎么免费开淘宝店 编辑:程序博客网 时间:2024/06/05 20:55
使用spring常常会用到c3p0,但是注意需要同时导入c3p0和mchange-commons-java两个jar包,否则会报错:
Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.mchange.v2.c3p0.ComboPooledDataSource]: No default constructor found; nested exception is java.lang.NoClassDefFoundError: com/mchange/v2/ser/Indirector
原创粉丝点击