# ssm-app **Repository Path**: yyqz/ssm-app ## Basic Information - **Project Name**: ssm-app - **Description**: SpringBoot+Struts2+MyBatis 测试项目 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-06-07 - **Last Updated**: 2025-06-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Spring Boot Struts2 MyBatis Application 这是一个整合了 Spring Boot、Struts2 和 MyBatis 的 Java Web 应用程序。该项目提供了一个完整的 Web 开发解决方案,包含用户登录、数据展示和存储等功能。 ## 项目结构 - **Controller 层**: `com.example.app.controller` 包含处理 HTTP 请求的控制器 - **Service 层**: `com.example.app.service` 及其实现类位于 `com.example.app.service.impl` - **DAO 层**: `com.example.app.dao` 包含 MyBatis 映射接口 - **Model 层**: `com.example.app.models` 包含实体类 - **配置类**: `com.example.app.config` 包含 Spring 配置 - **拦截器**: `com.example.app.interceptor` 包含请求拦截器 - **Web 资源**: JSP 页面和静态资源位于 `src/main/webapp` ## 特性 - Spring Boot 快速启动 - Struts2 MVC 框架集成 - MyBatis 数据持久化 - 用户登录和注册功能 - 数据展示和保存功能 - 自定义 Struts 配置提供者 - 登录拦截器保护 ## 快速开始 ### 依赖 - Java 8 或更高版本 - Maven 3.x - MySQL 或其他支持的数据库 - Servlet 容器(如 Tomcat) ### 安装 1. 克隆仓库 2. 配置数据库连接(`application.yml`) 3. 执行数据库脚本(`schema.sql` 和 `init.sql`) 4. 使用 Maven 构建项目: ```bash mvn clean package ``` 5. 部署到 Servlet 容器 ### 使用 1. 启动应用 2. 访问首页:`http://localhost:8080` 3. 使用注册功能创建新用户或使用现有账户登录 4. 在数据页面查看和保存表格数据 ## 贡献 欢迎贡献代码和提出建议。请先 fork 项目,进行修改后再提交 pull request。 ## 许可证 本项目使用 Apache-2.0 许可证。详情请查看 LICENSE 文件。