05 2013 档案

摘要:收集别人的资料加修改连接View Code public Connection getConn() throws SQLException { MysqlDataSource ds = new MysqlDataSource(); ds.setUrl("jdbc:mysql://localhost:3306/test?user=root&password=1"); return (Connection) ds.getConnection(); }主要代码View Code /** * 查询返回List集合 * * @pa... 阅读全文
posted @ 2013-05-04 21:28 肥仔-酷(code) 阅读(153) 评论(1) 推荐(0)
摘要:很想自己写模拟hibernate的封装,本人又是一个新手,能力有限,参考了网上资料,加上自己点修改。方便自己的偷懒@!@--连接View Code public Connection getConn() throws SQLException { MysqlDataSource ds = new MysqlDataSource(); ds.setUrl("jdbc:mysql://localhost:3306/test?user=root&password=1"); return (Connection) ds.getConnection(); ... 阅读全文
posted @ 2013-05-01 18:38 肥仔-酷(code) 阅读(157) 评论(0) 推荐(0)