`Book book = new Book(b.getId(),Double.**parseDouble**(bookPrice), bookName, bookAuthor, bookPublisher,new Timestamp(System.**currentTimeMillis**()));`
`bookDao.update(book);`
`new MainView(null);`
`view.dispose();`
`}`
`}`
`Utils工具类:`
`数据库连接和关闭连接的工具类:`
`public class ConnectionUtil {`
`private static final String **DRIVER** = "com.mysql.jdbc.Driver";`
`private static final String **URL** = "jdbc:mysql://localhost:3306/library_system?useUnicode=true&characterEncoding=UTF-8";`
`private static final String **USERNAME** = "root";`
`private static final String **PASSWORD** = "123456";`