只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-11-16 23:25 坚持沉淀 阅读(3) 评论(0) 推荐(0) 编辑
摘要: Properties类加载属性文件加载是开发中常用的一种方法。可以达到低耦合、高内聚的作用 注:properties属性文件必须方法src目录下,否则load()加载器无法找到properties属性文件。 方法如下: Properties props = new Properties(); pro 阅读全文
posted @ 2017-11-16 17:22 坚持沉淀 阅读(335) 评论(0) 推荐(0) 编辑
摘要: ResultSet rs = stmt.executeQuery("select name,health,love,strain from dog where name='美美'"); 不能改成如下形式。 ResultSet rs = stmt.executeQuery("select name,h 阅读全文
posted @ 2017-11-16 17:01 坚持沉淀 阅读(519) 评论(0) 推荐(0) 编辑
摘要: 原因是没有在类中加载驱动jar包。需要在项目中引入jar包 阅读全文
posted @ 2017-11-16 16:45 坚持沉淀 阅读(235) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-11-16 15:34 坚持沉淀 阅读(4) 评论(0) 推荐(0) 编辑
摘要: static 不能被继承 阅读全文
posted @ 2017-11-16 11:55 坚持沉淀 阅读(225) 评论(0) 推荐(0) 编辑