# 博客系统后端 **Repository Path**: sgary/smallgary.-smart-blogging-system.back-end ## Basic Information - **Project Name**: 博客系统后端 - **Description**: 个人简历项目 - **Primary Language**: Unknown - **License**: MulanPSL-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-07-15 - **Last Updated**: 2025-09-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Sgary 智能博客系统后端 Sgary 是一个智能博客系统后端,提供文章管理和用户管理功能。该项目使用 Spring Boot 框架构建,支持 RESTful API 接口,适用于现代博客平台的开发。 ## 功能特性 - **文章管理**:支持文章的创建、读取、更新和删除操作。 - **用户管理**:提供用户注册、登录、信息更新及用户列表查询功能。 - **权限控制**:通过 Spring Security 实现接口级别的权限验证。 - **全局异常处理**:统一处理系统异常,返回标准化错误信息。 - **分页支持**:用户列表支持分页查询。 ## 技术栈 - Spring Boot - Spring Security - MyBatis - Swagger UI (API 文档) - Maven ## 安装指南 1. **克隆项目** ```bash git clone https://gitee.com/sgary/smallgary.-smart-blogging-system.back-end.git ``` 2. **导入数据库** ```bash mysql -u your_username -p your_database < databases/platdata.sql ``` 3. **配置数据库连接** 修改 `application.yml` 或 `application-dev.yml` 文件中的数据库连接信息。 4. **启动项目** ```bash mvn spring-boot:run ``` ## API 文档 访问 `http://localhost:8080/swagger-ui.html` 查看和测试 API 接口。 ## 使用示例 - **获取文章列表**: ```http GET /articles ``` - **创建用户**: ```http POST /users/create Content-Type: application/json { "username": "example", "password": "password", "email": "example@example.com" } ``` ## 贡献指南 欢迎贡献代码!请遵循以下步骤: 1. Fork 项目 2. 创建新分支 (`git checkout -b feature/new-feature`) 3. 提交更改 (`git commit -am 'Add some feature'`) 4. 推送分支 (`git push origin feature/new-feature`) 5. 创建 Pull Request ## 许可证 本项目采用 MIT 许可证。详见 `LICENSE` 文件。