SpringBoot actual electricity supplier item mall (30k + star) Address: github.com/macrozheng/...
Summary
mall-swarm
As mall
Spring Cloud version of the project, has been updated to the latest code, the new rights management features. mall
Project code will always be kept up to date, mall-swarm
each over a period of time from mall
the merger once the code, this paper introduces the mall-swarm
basic content and learning routes.
mall-swarm Profile
mall-swarm
Is a set of micro-service store system that uses a Spring Cloud Greenwich, Spring Boot 2, MyBatis, Docker, Elasticsearch core technology, while providing management based on the background of Vue quickly and easily set up the system. mall-swarm
Based on the electricity supplier of integrated business registration center, distribution center, monitoring center, gateway and other system functions.
System Architecture
Back-end technology stack
technology | Explanation |
---|---|
Spring Cloud | Micro Services Framework |
Spring Boot | Container + MVC framework |
Spring Security | Authentication and authorization framework |
MyBatis | ORM framework |
MyBatisGenerator | Code generation data layer |
PageHelper | MyBatis physical page plugin |
Swagger-UI | Document production tools |
Elasticsearch | search engine |
RabbitMq | message queue |
Redis | Distributed Cache |
MongoDb | NoSql database |
Docker | Engine application container |
Druid | Database connection pool |
US | Object Storage |
minium | Object Storage |
JWT | JWT login support |
LogStash | Log Collection |
chilli | Object simplified packaging tools |
SEAT | Global Transaction Management Framework |
Portainer | Management Visualization Docker containers |
Jenkins | Automated deployment tools |
Project structure
mall
├── mall-common -- 工具类及通用代码模块
├── mall-mbg -- MyBatisGenerator生成的数据库操作代码模块
├── mall-security -- 封装SpringSecurity+JWT的安全认证的模块
├── mall-registry -- 基于Eureka的微服务注册中心
├── mall-config -- 基于Spring Cloud Config的微服务配置中心
├── mall-gateway -- 基于Spring Cloud Gateway的微服务API网关服务
├── mall-monitor -- 基于Spring Boot Admin的微服务监控中心
├── mall-admin -- 后台管理系统服务
├── mall-search -- 基于Elasticsearch的商品搜索系统服务
├── mall-portal -- 移动端商城系统服务
└── mall-demo -- 微服务远程调用测试服务
复制代码
Learning Path
A friend asked me before,
mall-swarm
this project has no tutorials? In fact, the function of this projectmall
are basically the same project, but on the basis of service into a micro version, just look at what I wrote "mall tutorials" and "Spring Cloud tutorial" button, below I recommend learning to talk route.
Learn mall
"Mall tutorial" is divided into several parts as follows, recommended learning sequence is the following sequence of learning other than the reference papers, papers for reference, we can then learn when to use which related technologies.
- Prologue:
mall
the overall structure and function of the project description, and recommended for novice some relevant information books; - Architecture articles:
mall
project architecture build tutorial taught you how to build amall
project using the basic skeleton of the project; - Business Review:
mall
Project electricity supplier business-related course, understanding the business project of great help; - Techniques articles:
mall
Some technical points of analytic projects, focuses on the use of some techniques in the project; - Articles deployment:
mall
deploy tutorial programs, including Windows, Linux and automated deployment scenarios; - Reference article:
mall
Project Getting tutorials techniques and tools used, each one can learn alone, formall
the project, the degree of in-depth tutorials are just right.
Project Address: github.com/macrozheng/...
Learn SpringCloud
"Spring Cloud tutorial" is a set of tutorials covers most of the core components used, including Spring Cloud Alibaba and distributed transaction Seata, based on Spring Cloud Greenwich and SpringBoot 2.1.7.20 article, Sylvia essence, 30 Demo, covering most application scenarios. mall-swarm
The project used the Spring Cloud technology tutorial covers the basic learning of the course can learn mall-swarm
to lay a good Spring Cloud infrastructure projects.
Project Address: github.com/macrozheng/...
Learn mall-swarm
When we learn the "mall tutorials" and "Spring Cloud tutorial" you can start learning mall-swarm
this project. The first need is to press before the tutorial project up and running, then the source of learning, we believe that with the above two sets of tutorial based learning, get to know the source code is not difficult. The following provides lower mall-swarm
deployment tutorial:
- mall-swarm deployed in a Windows environment
- mall-swarm deployed in the Linux environment (based Docker container)
- Micro-service automation deployment in architecture, using Jenkins to achieve!
Project Address: github.com/macrozheng/...
Docking front-end project
Recently I found that many of my friends use mall-admin-web
programs to dock mall-swarm
project, encountered some problems. It should be reminded that, because our mall-swarm
project uses Spring Cloud Gateway as a gateway service, so front-end gateway service request needs to go, specifically refer to "separation of the front and rear end of the project, the introduction of a Spring Cloud Gateway problem encountered! " .
Project Address: github.com/macrozheng/...
project address
the public
mall project a full tutorial serialized in public concern number the first time to obtain.