什么是spring-jdbc?使用spring框架来实现数据库的操作步骤:配置xml,使用JdbcTemplate类来代替jdbc,创建数据源c3p0对象,将数据源注入JdbcTemplate类中,再将JdbcTemplate注入需要使用的类中即可 xml文件配置 JdbcTemplate的使用