Spring配置文件中将dataSource的包改为:

org.springframework.jdbc.datasource.DriverManagerDataSource

原来是org.apache.commons.dbcp.BasicDataSource