javaweb简单的图书管理系统.pptxVIP

  • 14
  • 0
  • 约7.03千字
  • 约 28页
  • 2021-01-19 发布于广东
  • 举报
;南昌大学实验报告;图书添加 图书修改 用户管理 图书借阅 归还图书 五、软件设计 ER 图;程序流程;;;public String getName() { return name; } public void setName(String name) { this.name = name; } public String getPwd() { return pwd; } public void setPwd(String pwd) { this.pwd = pwd; } } 2.图书类 bookinfo.java package vo; public class bookinfo { private String bno,bname,author,price,other; public String getBno() { return bno; } public void setBno(String bno) { this.bno = bno; } public String getBname() { return bname; } public void setBname(String bname) { this.bname = bname; } public String getAuthor() { return author; };public void setAuthor(String author) { this.author = author; } public String getPrice() { return price; } public void setPrice(String price) { this.price = price; } public String getOther() { return other; } public void setOther(String other) { this.other = other; } } 3.借书信息类 lendbook.info package vo; public class lendbook { private String username, bno,bname,author,price,other; public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getBno() { return bno; } public void setBno(String bno) { this.bno = bno; };public String getBname() { return bname; } public void setBname(String bname) { this.bname = bname; } public String getAuthor() { return author; } public void setAuthor(String author) { this.author = author; } public String getPrice() { return price; } public void setPrice(String price) { this.price = price; } public String getOther() { return other; } public void setOther(String other) { this.other = other; } } 4.用户功能 UserDao.java package dao; import java.util.List; import java.sql.*; import java.util.ArrayList; import vo.bookinfo;;import vo.User; import vo.lendbook; import dbc.JdbcUtil; public class UserDao { public void add(User user) throws Exception{//添加用户 Connection conn=null; PreparedStatement ps=null; try { conn=JdbcUtil.getConnection(); String sql=insert into user values(?,?); ps=conn.prepareStatement(s

文档评论(0)

1亿VIP精品文档

相关文档