Files
Book-management-system/README.md
T
2026-04-27 18:40:30 +08:00

821 B

MZH Library Management

Initial JSP + Servlet + MySQL scaffold for the library-management system.

Stack

  • Java 11
  • Maven WAR project layout
  • JSP + Servlet on Tomcat
  • MySQL through JDBC DAO classes

Local Setup

  1. Create a MySQL database and run src/main/resources/db/schema.sql.
  2. Copy src/main/resources/db.properties.example to src/main/resources/db.properties.
  3. Fill in the MySQL URL, username, and password.
  4. Build with Maven when available:
mvn clean package
  1. Deploy target/library-management.war to Tomcat.

The login flow is intentionally limited to the first scaffold slice. It supports administrator, librarian, and reader roles, stores only a safe authenticated-user snapshot in the HTTP session, and keeps authentication work in Servlet -> Service -> DAO boundaries.