开发JDBUtil工具类 获取Connection,关闭Connection、Statement、ResultSet
获取配置文件 InputStream inputStream =当前类名.class.getClassLoader().getResourceAsStream("文件名"); Properties properties = new Properties(); properties.load(inputStream); String url=properties.getProperty("jdbc.url");
单元测试断言功能:
Assert.assertNotNull(params)判断params是否为空
通过配置文件获得信息