back to home

macrozheng / mall-swarm

mall-swarm是一套微服务商城系统,采用了 Spring Cloud Alibaba、Spring Boot 3.2、Sa-Token、MyBatis、Elasticsearch、Docker、Kubernetes等核心技术,同时提供了基于Vue的管理后台方便快速搭建系统。mall-swarm在电商业务的基础集成了注册中心、配置中心、监控中心、网关等系统功能。

12,836 stars
5,506 forks
9 issues
JavaShell

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing macrozheng/mall-swarm in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind-ai.vercel.app/repo/macrozheng/mall-swarm)
Preview:Analyzed by RepoMind

Repository Summary (README)

Preview

mall-swarm

<p> <a href="#公众号"><img src="http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/badge/%E5%85%AC%E4%BC%97%E5%8F%B7-macrozheng-blue.svg" alt="公众号"></a> <a href="#公众号"><img src="http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/badge/%E4%BA%A4%E6%B5%81-%E5%BE%AE%E4%BF%A1%E7%BE%A4-2BA245.svg" alt="交流"></a> <a href="https://github.com/macrozheng/mall-learning"><img src="http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/badge/%E5%AD%A6%E4%B9%A0%E6%95%99%E7%A8%8B-mall--learning-green.svg" alt="学习教程"></a> <a href="https://github.com/macrozheng/mall"><img src="http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/badge/%E5%90%8E%E5%8F%B0%E9%A1%B9%E7%9B%AE-mall-blue.svg" alt="后台项目"></a> <a href="https://github.com/macrozheng/mall-admin-web"><img src="http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/badge/%E5%89%8D%E7%AB%AF%E9%A1%B9%E7%9B%AE-mall--admin--web-green.svg" alt="前端项目"></a> <a href="https://github.com/macrozheng/mall-app-web"><img src="https://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/badge/%E5%89%8D%E5%8F%B0%E5%95%86%E5%9F%8E%E9%A1%B9%E7%9B%AE-mall--app--web-green.svg" alt="前台商城项目"></a> <a href="https://gitee.com/macrozheng/mall-swarm"><img src="http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/badge/%E7%A0%81%E4%BA%91-%E9%A1%B9%E7%9B%AE%E5%9C%B0%E5%9D%80-orange.svg" alt="码云"></a> </p>

友情提示

  1. 快速体验项目在线访问地址
  2. 全套学习教程《mall-swarm微服务学习教程》
  3. 视频教程(2024最新版)《mall-swarm视频教程》
  4. Spring Cloud全套教程《SpringCloud学习教程》
  5. 分支说明master分支基于Spring Cloud 2023+Spring Boot 3.2,dev-v2分支基于Spring Cloud 2021+Spring Boot 2.7。

项目简介

mall-swarm是一套微服务商城系统,采用了 Spring Cloud 2023 & Alibaba、Spring Boot 3.2、Sa-Token、MyBatis、Elasticsearch、Docker、Kubernetes等核心技术,同时提供了基于Vue的管理后台方便快速搭建系统。mall-swarm在电商业务的基础集成了注册中心、配置中心、监控中心、网关等系统功能。文档齐全,附带全套Spring Cloud教程。

项目演示

后台管理系统

前端项目mall-admin-web地址:https://github.com/macrozheng/mall-admin-web

项目演示地址: https://www.macrozheng.com/admin/index.html

后台管理系统功能演示

前台商城系统

前端项目mall-app-web地址:https://github.com/macrozheng/mall-app-web

项目演示地址(将浏览器切换为手机模式效果更佳):https://www.macrozheng.com/app/

前台商城系统功能演示

项目架构

系统架构

系统架构图

业务架构

业务架构图

组织结构

mall
├── mall-common -- 工具类及通用代码模块
├── mall-mbg -- MyBatisGenerator生成的数据库操作代码模块
├── mall-auth -- 基于Spring Security Oauth2的统一的认证中心
├── mall-gateway -- 基于Spring Cloud Gateway的微服务API网关服务
├── mall-monitor -- 基于Spring Boot Admin的微服务监控中心
├── mall-admin -- 后台管理系统服务
├── mall-search -- 基于Elasticsearch的商品搜索系统服务
├── mall-portal -- 移动端商城系统服务
├── mall-demo -- 微服务远程调用测试服务
└── config -- 配置中心存储的配置

技术选型

后端技术

技术说明官网
Spring Cloud微服务框架https://spring.io/projects/spring-cloud
Spring Cloud Alibaba微服务框架https://github.com/alibaba/spring-cloud-alibaba
Spring Boot容器+MVC框架https://spring.io/projects/spring-boot
Sa-Token认证和授权框架https://github.com/dromara/Sa-Token
MyBatisORM框架http://www.mybatis.org/mybatis-3/zh/index.html
MyBatisGenerator数据层代码生成http://www.mybatis.org/generator/index.html
PageHelperMyBatis物理分页插件http://git.oschina.net/free/Mybatis_PageHelper
Knife4j文档生产工具https://github.com/xiaoymin/swagger-bootstrap-ui
Elasticsearch搜索引擎https://github.com/elastic/elasticsearch
RabbitMq消息队列https://www.rabbitmq.com/
Redis分布式缓存https://redis.io/
MongoDbNoSql数据库https://www.mongodb.com/
Docker应用容器引擎https://www.docker.com/
Druid数据库连接池https://github.com/alibaba/druid
OSS对象存储https://github.com/aliyun/aliyun-oss-java-sdk
MinIO对象存储https://github.com/minio/minio
LogStash日志收集https://github.com/logstash/logstash-logback-encoder
Lombok简化对象封装工具https://github.com/rzwitserloot/lombok
Seata全局事务管理框架https://github.com/seata/seata
Portainer可视化Docker容器管理https://github.com/portainer/portainer
Jenkins自动化部署工具https://github.com/jenkinsci/jenkins
Kubernetes应用容器管理平台https://kubernetes.io/

前端技术

技术说明官网
Vue前端框架https://vuejs.org/
Vue-router路由框架https://router.vuejs.org/
Vuex全局状态管理框架https://vuex.vuejs.org/
Element前端UI框架https://element.eleme.io/
Axios前端HTTP框架https://github.com/axios/axios
v-charts基于Echarts的图表框架https://v-charts.js.org/

移动端技术

技术说明官网
Vue核心前端框架https://vuejs.org
Vuex全局状态管理框架https://vuex.vuejs.org
uni-app移动端前端框架https://uniapp.dcloud.io
mix-mall电商项目模板https://ext.dcloud.net.cn/plugin?id=200
luch-requestHTTP请求框架https://github.com/lei-mu/luch-request

环境搭建

开发环境

工具版本号下载
JDK17https://www.oracle.com/cn/java/technologies/downloads/#java17
Mysql5.7https://www.mysql.com/
Redis7.0https://redis.io/download
Elasticsearch7.17.3https://www.elastic.co/cn/downloads/elasticsearch
Kibana7.17.3https://www.elastic.co/cn/downloads/kibana
Logstash7.17.3https://www.elastic.co/cn/downloads/logstash
MongoDb5.0https://www.mongodb.com/download-center
RabbitMq3.10.5http://www.rabbitmq.com/download.html
nginx1.22http://nginx.org/en/download.html

搭建步骤

运行效果展示

公众号

加微信群交流,关注公众号「macrozheng」,回复「加群」即可。

公众号图片

许可证

Apache License 2.0

Copyright (c) 2018-2025 macrozheng