}
/*
* 释放资源 */
public void closeAll(){ }
try { }
if(rs != null){ }
if(ps != null){ }
if(conn != null){ }
e.printStackTrace(); conn = null; ps = null; rs = null;
conn.close(); ps.close(); rs.close();
} catch (SQLException e) { }finally{
2. 实体类代码:
package com.book.entity;
public class Book {
private String book_publishTime; private String book_synopsis; private double book_price; private String book_author; private String book_num; private String book_name; private int book_id;