严重: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘dataSource’ defined in class path resource [applicationContext.xml]: 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
从异常描述里来看,是找不到[com.mchange.v2.c3p0.ComboPooledDataSource]的默认构造方法找不到,这个类在c3p0-0.9.5.3.jar里面,可能是版本问题,也可能是类的依赖没有加载,我的解决办法是加载mchange-commons-java-xxxx.jar