Initial commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# 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 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.
|
||||
Reference in New Issue
Block a user