26 lines
836 B
Markdown
26 lines
836 B
Markdown
# 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:
|
|
|
|
```bash
|
|
mvn clean package
|
|
```
|
|
|
|
5. Deploy `target/library-management.war` to Tomcat.
|
|
|
|
The implemented scaffold slices now cover login/permission checks, catalog and book management, and reader profile management. Authentication stores only a safe authenticated-user snapshot in the HTTP session, and business workflows stay in Servlet -> Service -> DAO boundaries.
|