# ssm_project **Repository Path**: li9699/ssm_project ## Basic Information - **Project Name**: ssm_project - **Description**: 脱离SpringBoot基于XML和注解整合的SSM综合案例 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-06-25 - **Last Updated**: 2025-07-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: Spring, MVC, MyBatis ## README # SSM Project Example This is a Java Web project example based on Spring + Spring MVC + MyBatis, containing two versions: - `ssm_project_annotation`: Version based on annotation configuration - `ssm_project_xml`: Version based on XML configuration files ## Project Features It implements a simple employee information management module with the following core features: - Query employee list - Unified exception handling - Interceptor functionality (annotation version only) - Declarative transaction management ## Module Structure - **Controller Layer**: Handles HTTP requests (`EmployeeController`) - **Service Layer**: Business logic processing (`EmployeeService` interface and its implementation classes) - **Mapper Layer**: Database operations (`EmployeeMapper` interface) - **Model Layer**: Entity class (`Employee`) - **Configuration Classes**: Framework configurations for Spring, MyBatis, etc. - **Exception Handling**: Global exception handler (`GlobalExceptionHandler`) ## Technology Stack - Spring Framework - Spring MVC - MyBatis - Maven (project build) - Java Annotation Configuration (for annotation version) - XML Configuration (for XML version) ## Runtime Environment - JDK 1.8 or higher - Maven 3.x - Web container supporting Servlet 3.0 (such as Tomcat 8+) - MySQL database (needs configuration according to `jdbc.properties`) ## Instructions for Use 1. Import the project into an IDE (such as IntelliJ IDEA or Eclipse) 2. Modify the database connection configuration (`jdbc.properties` file) 3. Create the corresponding database table structure 4. Build the project using Maven 5. Deploy and run it in a Web container 6. Access the `/employee` endpoint to retrieve employee list data ## Learning Objectives This project is suitable for learning SSM (Spring + Spring MVC + MyBatis) framework integration development, demonstrating two mainstream configuration approaches: - Modern annotation-driven configuration - Traditional XML-based configuration By comparing the two versions, you can gain a better understanding of the different configuration methods in the Spring framework and their evolution.