{"id":14972992,"url":"https://github.com/youlaitech/youlai-mall","last_synced_at":"2026-01-12T02:50:09.366Z","repository":{"id":36954668,"uuid":"244072826","full_name":"youlaitech/youlai-mall","owner":"youlaitech","description":"🚀基于 Spring Boot 3、Spring Cloud \u0026 Alibaba 2022、SAS OAuth2 、Vue3、Element-Plus、uni-app 构建的开源全栈商城。","archived":false,"fork":false,"pushed_at":"2025-04-20T16:36:59.000Z","size":146657,"stargazers_count":2223,"open_issues_count":18,"forks_count":737,"subscribers_count":31,"default_branch":"master","last_synced_at":"2025-05-05T16:27:32.369Z","etag":null,"topics":["element-plus","jwt","mybatis","mybatis-plus","mybatisplus","mysql","oauth2","redis","spring","spring-authorization-server","spring-boot","spring-cloud","spring-cloud-alibaba","spring-security-oauth2","springboot","springcloud","uniapp","vue3-element-admin","youlai-mall"],"latest_commit_sha":null,"homepage":"https://admin.youlai.tech","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/youlaitech.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-03-01T02:19:27.000Z","updated_at":"2025-05-05T14:34:24.000Z","dependencies_parsed_at":"2023-09-23T14:38:25.898Z","dependency_job_id":"6996c038-076a-48f7-913a-27b55940ced2","html_url":"https://github.com/youlaitech/youlai-mall","commit_stats":{"total_commits":1417,"total_committers":23,"mean_commits":"61.608695652173914","dds":0.09386026817219473,"last_synced_commit":"a01606e8a16232f9d09b5ea0e1289a965ab2c2da"},"previous_names":["hxrui/youlai-mall"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youlaitech%2Fyoulai-mall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youlaitech%2Fyoulai-mall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youlaitech%2Fyoulai-mall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youlaitech%2Fyoulai-mall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/youlaitech","download_url":"https://codeload.github.com/youlaitech/youlai-mall/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254049457,"owners_count":22006062,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["element-plus","jwt","mybatis","mybatis-plus","mybatisplus","mysql","oauth2","redis","spring","spring-authorization-server","spring-boot","spring-cloud","spring-cloud-alibaba","spring-security-oauth2","springboot","springcloud","uniapp","vue3-element-admin","youlai-mall"],"created_at":"2024-09-24T13:47:54.161Z","updated_at":"2026-01-12T02:50:09.356Z","avatar_url":"https://github.com/youlaitech.png","language":"Java","funding_links":[],"categories":["Java"],"sub_categories":[],"readme":"\n\n\u003cdiv align=\"center\"\u003e\n   \u003cimg alt=\"logo\" width=\"100\" height=\"100\" src=\"https://foruda.gitee.com/images/1724259461244885014/4de96569_716974.png\"\u003e\n  \u003ch2\u003eyoulai-mall\u003c/h2\u003e\n  \u003cimg alt=\"有来技术\" src=\"https://img.shields.io/badge/Java-17-brightgreen.svg\"/\u003e\n  \u003cimg alt=\"有来技术\" src=\"https://img.shields.io/badge/SpringBoot-3.1.5-green.svg\"/\u003e\n  \u003cimg alt=\"有来技术\" src=\"https://img.shields.io/badge/SpringCloud \u0026 Alibaba-2022-yellowgreen.svg\"/\u003e\n\n  \u003ca href=\"https://gitee.com/youlaitech/youlai-mall\" target=\"_blank\"\u003e\n    \u003cimg alt=\"有来技术\" src=\"https://gitee.com/youlaitech/youlai-mall/badge/star.svg\"/\u003e\n  \u003c/a\u003e     \n  \u003ca href=\"https://github.com/hxrui\" target=\"_blank\"\u003e\n    \u003cimg alt=\"有来技术\" src=\"https://img.shields.io/github/stars/youlaitech/youlai-mall.svg?style=social\u0026label=Stars\"/\u003e\n  \u003c/a\u003e\n\n  \u003cbr/\u003e\n\n  \u003cimg alt=\"有来技术\" src=\"https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg\"/\u003e\n  \u003ca href=\"https://gitee.com/youlaiorg\" target=\"_blank\"\u003e\n    \u003cimg alt=\"有来技术\" src=\"https://img.shields.io/badge/Author-有来开源组织-orange.svg\"/\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n![](https://raw.gitmirror.com/youlaitech/image/main/docs/rainbow.png)\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca target=\"_blank\" href=\"https://admin.youlai.tech/\"\u003e🔍 在线预览\u003c/a\u003e |  \u003ca target=\"_blank\" href=\"https://doc.youlai.tech/%E5%BE%AE%E6%9C%8D%E5%8A%A1%E5%95%86%E5%9F%8E/\"\u003e📖 阅读文档\u003c/a\u003e | \u003ca href=\"./README.en-US.md\"\u003e🌐English\n\u003c/div\u003e\n\n## 🌱分支说明\n|                   | 说明                                                    | 适配管理前端分支                                                               | 适配移动端分支                                                            |\n|-------------------|-------------------------------------------------------|------------------------------------------------------------------------|--------------------------------------------------------------------|\n| ✅master            | Java 17 + Spring Boot 3 + Spring Authorization Server | [mall-admin:master](https://gitee.com/youlaiorg/mall-admin)            | [mall-app:master](https://gitee.com/youlaiorg/mall-app)            |\n| java8 | Java 8 + Spring Boot 2 + Spring Security OAuth2       | [mall-admin:java8](https://gitee.com/youlaiorg/mall-admin/tree/java8/) | [mall-app:java8](https://gitee.com/youlaiorg/mall-app/tree/java8/) |\n\n\n## 🚀项目简介\n\n[youlai-mall](https://gitee.com/haoxr) 是基于Spring Boot 3 、Spring Cloud \u0026 Alibaba\n2022、Vue3、Element-Plus、uni-app等全栈主流技术栈构建的开源商城项目，涉及 [微服务接口](https://gitee.com/youlaitech/youlai-mall)、 [管理前端](https://gitee.com/youlaitech/youlai-mall-admin)、 [微信小程序](https://gitee.com/youlaitech/youlai-mall-weapp)\n和 [APP应用](https://gitee.com/youlaitech/youlai-mall-weapp)等多端的开发。\n\n- 项目使用皆是当前主流前后端技术栈(持续更新...)，无过度自定义封装，易理解学习和二次扩展；\n- Spring Boot 3 、SpringCloud \u0026 Alibaba 2022 一站式微服务开箱即用的解决方案；\n- Spring Authorization Server 、 JWT 常用 OAuth2 授权模式扩展；\n- 移动端采用终极跨平台解决方案 uni-app， 一套代码编译iOS、Android、H5和小程序等多个平台；\n- Jenkins、K8s、Docker实现微服务持续集成与交付(CI/CD)。\n\n## 🌈在线预览\n\n| 项目      | 地址                        | 用户名/密码             |\n|---------|---------------------------|--------------------|\n| 管理端     | https://admin.youlai.tech | admin/123456       |\n| 移动端(H5) | http://app.youlai.tech    | 18866668888/666666 |\n| 微信小程序  | 关注【有来技术】公众号| 获取体验码申请体验              |\n\n\n## 🍀源码地址\n\n|      | Gitee                                                  | Github                                                   | GitCode |\n|------|--------------------------------------------------------|----------------------------------------------------------|---------|\n| 后端接口 | [youlai-mall](https://gitee.com/youlaiorg/youlai-mall) | [youlai-mall](https://github.com/youlaitech/youlai-mall) | -       |\n| 管理前端 | [mall-admin](https://gitee.com/youlaiorg/mall-admin)   | [mall-admin](https://github.com/youlaitech/mall-admin)   | -       |\n| 移动端  | [mall-app](https://gitee.com/youlaiorg/mall-app)       | [mall-app](https://github.com/youlaitech/mall-app)       | -       |\n\n## 📁目录结构\n\n``` text\nyoulai-mall\n├── docs  \n    ├── nacos                       # Nacos配置\n        ├── nacos_config.zip        # Nacos脚本   \n    ├── sql                         # SQL脚本\n        ├── mysql5                  # MySQL5脚本\n        ├── mysql8                  # MySQL8脚本\n├── mall-oms                        # 订单服务\n├── mall-pms                        # 商品服务\n├── mall-sms                        # 营销服务\n├── mall-ums                        # 会员服务\n├── youlai-auth                     # 认证授权中心\n├── youlai-common                   # 公共模块\n    ├── common-core                 # 基础依赖\n    ├── common-log                  # 日志公共模块\n    ├── common-mybatis              # Mybatis 公共模块\n    ├── common-rabbitmq             # RabbitMQ 公共模块\n    ├── common-redis                # Redis 公共模块\n    ├── common-seata                # Seata 公共模块\n    ├── common-security             # 资源服务器安全公共模块\n    ├── common-web                  # Web 公共模块\n├── youlai-gateway                  # 网关\n├── youlai-system                   # 系统服务\n    ├── system-api                  # 系统Feign接口\n    ├── system-boot                 # 系统管理接口\n└── end       \n```\n\n## 🌌启动项目\n\n### 环境要求\n\n- JDK 17\n- MySQL 8 或 MySQL 5.7\n- Nacos 2.2+\n\n### 安装中间件\n\n|          | Windows                                                      | Linux                                                        | 是否必装     |\n| -------- | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------ |\n| Nacos    | [Windows 安装 Nacos 2.2](https://youlai.blog.csdn.net/article/details/130864925) | [Linux 安装 Nacos 2.3](https://youlai.blog.csdn.net/article/details/132592040) | 是           |\n| MySQL    | [Windows 安装 MySQL 8](https://youlai.blog.csdn.net/article/details/133272887) | [Linux 安装 MySQL8](https://youlai.blog.csdn.net/article/details/130398179) | 否(建议安装) |\n| Redis    | [Windows 安装 Redis](https://youlai.blog.csdn.net/article/details/133410293) | [Linux 安装 Redis](https://youlai.blog.csdn.net/article/details/130439335) | 否(建议安装) |\n| Seata    | [Windows 安装 Seata 1.6](https://youlai.blog.csdn.net/article/details/133295970) | [Linux 安装 Seata 1.7](https://youlai.blog.csdn.net/article/details/133376131) | 否           |\n| RabbitMQ | /                                                            | [Linux 安装 RabbitMQ](https://blog.csdn.net/u013737132/article/details/130439122) | 否           |\n\n💡默认中间件使用有来线上的环境，其中线上 MySQL 数据是只读的，如果需要进行修改或删除操作，建议自己安装 MySQL。\n\n### 初始化数据库\n\n进入 `docs/sql` 目录 ， 根据 MySQL 版本选择对应的脚本；\n\n先执行 [database.sql](docs%2Fsql%2Fmysql8%2Fdatabase.sql) 完成数据库的创建；\n\n再执行 [youlai_system.sql](docs%2Fsql%2Fmysql8%2Fyoulai_system.sql) 、[oauth2_server.sql](docs%2Fsql%2Fmysql8%2Foauth2_server.sql)、mall_*.sql 完成数据表的创建和数据初始化。\n\n### 导入 Nacos 配置\n\n打开浏览器，地址栏输入 Nacos 控制台的地址 [ http://localhost:8848/nacos]( http://localhost:8848/nacos) ；\n\n输入用户名/密码：nacos/nacos ；\n\n进入控制台，点击左侧菜单 `配置管理` → `配置列表` 进入列表页面，点击 `导入配置`\n选择项目中的 `docs/nacos/nacos_config.zip` 文件。\n\n### 修改 Nacos 配置\n\n在共享配置文件 youlai-common.yaml 中，包括 MySQL、Redis、RabbitMQ 和 Seata 的连接信息，默认是有来线上的环境。\n\n如果您有自己的环境，可以按需修改相应的配置信息。\n\n如果没有自己的 MySQL、Redis、RabbitMQ 和 Seata 环境，可以直接使用默认的配置。\n\n### 启动服务\n\n- 进入 `youlai-gateway` 模块的启动类 GatewayApplication 启动网关；\n\n- 进入 `youlai-auth` 模块的启动类 AuthApplication 启动认证授权中心；\n\n- 进入 `youlai-system`  → `system-boot` 模块的启动类 SystemApplication 启动系统服务；\n\n- 至此完成基础服务的启动，商城服务按需启动，启动方式和 `youlai-system` 一致;\n\n- 访问接口文档地址测试:  [http://localhost:9999/doc.html](http://localhost:9999/doc.html)\n\n\n## 📝开发文档\n\n- [Spring Authorization Server 扩展 OAuth2 密码模式](https://youlai.blog.csdn.net/article/details/134024381)\n- [Spring Cloud Gateway + Knife4j 网关聚合和 OAuth2 密码模式测试](https://youlai.blog.csdn.net/article/details/134081509)\n\n\n## 💖加交流群\n\n\u003e 关注公众号【有来技术】，获取交流群二维码，二维码过期请加我微信(`haoxianrui`)备注“有来”，我拉你进群。\n\n| ![](https://s2.loli.net/2022/11/19/OGjum9wr8f6idLX.png) |\n|---------------------------------------------------------|\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoulaitech%2Fyoulai-mall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoulaitech%2Fyoulai-mall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoulaitech%2Fyoulai-mall/lists"}