Java 前台加后台精品图书管理系统的实现

网友投稿 242 2022-11-22

Java 前台加后台精品图书管理系统的实现

一、项目简述

功能包括: 登录注册,办理借阅。借阅记录,预约借阅,借出未还, 借阅逾期,学生管理,图书管理,书库分类查询搜索。

二、项目运行

环境配置: Jdk1.8 + Tomcat8.5 + mysql + Eclispe (IntelliJ IDEA,Eclispe,MyEclispe,Sts 都支持)

项目技术: jsP +Spring + SpringMVC + MyBatis + html+ css + javascript + jquery + Ajax + layui+ maven等等。

修改图书类型信息代码:

/**

* Servlet implementation class updateBookTypeServlet

*/

@WebServlet("/updateBookTypeServlet")

public class updateBookTypeServlet extends HttpServlet {

private static final long serialVersionUID = 1L;

/**

* @see HttpServlet#HttpServlet()

*/

public updateBookTypeServlet() {

super();

// TODO Auto-generated constructor stub

}

/**

* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)

*/

protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

// TODO Auto-generated method stub

// response.getWriter().append("Served at: ").append(request.getContextPath());

}

/**

* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)

*/

protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

// TODO Auto-generated method stub

// doGet(request, response);

//修改图书类型信息

request.setCharacterEncoding("UTF-8");

response.setContentType("text/html;charset=UTF-8");

String name = request.getParameter("name");

int tid = Integer.parseInt(request.getParameter("tid"));

TypeDao typedao = new TypeDao();

typedao.updateTypeBook(tid,name);

response.sendRedirect("/books/admin_booktype.jsp");

}

}

登录图书管理系统主页面代码:

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@ page import = "com.rain.bean.AdminBean,com.rain.bean.HistoryBean,com.rain.dao.AdminDao" %>