摘要:
JDBC工具类的作用就是方便使用数据操作方法,设计本着方便维护,可重复使用的思想。 public class JDBCUtil2 { private static final String URL="jdbc:mysql://localhost/表名?useUnicode=true&useSSL=f 阅读全文
摘要:
一、配置文件 1、为什么需要使用配置文件 首先:看一下不用配置文件的参数写法 public class JDBCUtils{ private static final String DRIVER="com.mysql.jdbc.Driver"; private static final String 阅读全文