1.添加JAR包--build path 2.添加配置文件在src目录下(不要写在包里) DBCP的db.properties写在包里的后果 空指针异常 C3P0配置文件写在包里的后果: 3.DBCP配置 4.C3P0配置