# youlai-boot **Repository Path**: powerfulhacker/youlai-boot ## Basic Information - **Project Name**: youlai-boot - **Description**: 🌈 基于 Java 17 + Spring Boot 3 + Spring Security 6 + Vue3 + Element-Plus 构建的前后端分离单体权限管理系统。 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://vue.youlai.tech - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 679 - **Created**: 2025-02-07 - **Last Updated**: 2025-02-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
 ## 📢 项目简介 基于 JDK 17、Spring Boot 3、Spring Security 6、JWT、Redis、Mybatis-Plus、Knife4j、Vue 3、Element-Plus 构建的前后端分离单体权限管理系统。 - **🚀 开发框架**: 使用 Spring Boot 3 和 Vue 3,以及 Element-Plus 等主流技术栈,实时更新。 - **🔐 安全认证**: 结合 Spring Security 和 JWT 提供安全、无状态、分布式友好的身份验证和授权机制。 - **🔑 权限管理**: 基于 RBAC 模型,实现细粒度的权限控制,涵盖接口方法和按钮级别。 - **🛠️ 功能模块**: 包括用户管理、角色管理、菜单管理、部门管理、字典管理等多个功能。 ## 🌈 项目地址 - **在线预览**:[https://vue.youlai.tech](https://vue.youlai.tech) - **前端项目**:[vue3-element-admin](https://gitee.com/youlaiorg/vue3-element-admin) - **接口文档**:[https://www.apifox.cn/apidoc](https://www.apifox.cn/apidoc/shared-195e783f-4d85-4235-a038-eec696de4ea5) - **项目文档**:[youlai-boot 企业级权限管理系统全功能详解](https://youlai.blog.csdn.net/article/details/145178880) - **从0到1文档**:[从0到1搭建 youlai-boot 企业级权限管理系统](https://youlai.blog.csdn.net/article/details/145177011) ## 🚀 项目启动 1. **克隆项目** ```bash git clone https://gitee.com/youlaiorg/youlai-boot.git ``` 2. **数据库初始化** 执行 [youlai_boot.sql](sql/mysql8/youlai_boot.sql) 脚本完成数据库创建、表结构和基础数据的初始化。 3. **修改配置** [application-dev.yml](src/main/resources/application-dev.yml) 修改MySQL、Redis连接配置; 4. **启动项目** 执行 [YoulaiBootApplication.java](src/main/java/com/youlai/boot/YoulaiBootApplication.java) 的 main 方法完成后端项目启动; 访问接口文档地址 [http://localhost:8989/doc.html](http://localhost:8989/doc.html) 验证项目启动是否成功。 ## 📁 项目目录 ``` youlai-boot ├── sql # SQL脚本 │ ├── mysql5 # MySQL5 脚本 │ └── mysql8 # MySQL8 脚本 ├── src # 源码目录 │ ├── common # 公共模块 │ │ ├── annotation # 注解定义 │ │ ├── base # 基础类 │ │ ├── constant # 常量 │ │ ├── enums # 枚举类型 │ │ ├── exception # 异常处理 │ │ ├── model # 数据模型 │ │ ├── result # 结果封装 │ │ └── util # 工具类 │ ├── config # 自动装配配置 │ │ ├── property # 配置属性 │ │ │ ├── AliyunSmsProperties # 阿里云短信配置属性 │ │ │ ├── CaptchaProperties # 验证码配置属性 │ │ │ ├── CodegenProperties # 文件配置属性 │ │ │ ├── MailProperties # 邮件配置属性 │ │ │ ├── SecurityProperties # 安全配置属性 │ │ ├── CorsConfig # 跨域共享配置 │ │ ├── MybatisConfig # Mybatis 自动装配配置 │ │ ├── RedisCacheConfig # Redis 缓存自动装配配置 │ │ ├── RedisConfig # Redis 自动装配配置 │ │ ├── SecurityConfig # Spring Security 自动装配配置 │ │ ├── SwaggerConfig # API 接口文档配置 │ │ ├── WebMvcConfig # WebMvc 配置 │ │ ├── WebSocketConfig # WebSocket 自动装配配置 │ │ └── XxlJobConfig # XXL-JOB 自动装配配置 │ ├── core # 核心功能 │ │ ├── aspect # 切面 │ │ │ ├── LogAspect # 日志切面 │ │ │ └── RepeatSubmitAspect # 防重提交切面 │ │ ├── filter # 过滤器 │ │ │ ├── RateLimiterFilter # 限流过滤器 │ │ │ └── RequestLogFilter # 请求日志过滤器 │ │ ├── handler # 处理器 │ │ │ ├── MyDataPermissionHandler # 数据权限处理器 │ │ │ └── MyMetaObjectHandler # 元对象字段填充处理器 │ │ └── security # Spring Security 安全模块 │ ├── modules # 业务模块 │ │ ├── member # 会员模块【业务模块演示】 │ │ ├── order # 订单模块【业务模块演示】 │ │ ├── product # 商品模块【业务模块演示】 │ ├── shared # 共享模块 │ │ ├── auth # 认证模块 │ │ ├── file # 文件模块 │ │ ├── codegen # 代码生成模块 │ │ ├── mail # 邮件模块 │ │ ├── sms # 短信模块 │ │ └── websocket # WebSocket 模块 │ ├── system # 系统模块 │ │ ├── controller # 控制层 │ │ ├── converter # MapStruct 转换器 │ │ ├── event # 事件处理 │ │ ├── handler # 处理器 │ │ ├── listener # 监听器 │ │ ├── model # 模型层 │ │ │ ├── bo # 业务对象 │ │ │ ├── dto # 数据传输对象 │ │ │ ├── entity # 实体对象 │ │ │ ├── form # 表单对象 │ │ │ ├── query # 查询参数对象 │ │ │ └── vo # 视图对象 │ │ ├── mapper # 数据库访问层 │ │ └── service # 业务逻辑层 │ └── YouLaiApplication # 启动类 └── end ``` ## ✅ 项目统计  Thanks to all the contributors! [](https://github.com/haoxianrui/youlai-boot/graphs/contributors) ## 💖 加交流群 > 关注公众号 有来技术 ,点击菜单 交流群 获取加群二维码。 