使用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