MCPcopy Index your code
hub / github.com/macrozheng/springcloud-learning

github.com/macrozheng/springcloud-learning @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
2,033 symbols 4,141 edges 340 files 393 documented · 19% updated 23mo ago★ 6,918
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

springcloud-learning

简介

2024最新微服务实战教程,Spring Cloud组件、微服务项目实战、Kubernetes容器化部署全方位解析。本教程基于mall-swarm微服务电商项目。

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

教程网站

目录

序章

对mall-swarm项目的架构、业务、学习要求及学习思路进行介绍。

快速开始

讲解mall-swarm项目前后端在Windows下的开发环境搭建以及在Linux下的部署。

组件篇

对Spring Cloud全套核心组件进行讲解,涵盖Spring Cloud Alibaba、Spring Authorization Server和SkyWalking,基于Spring Cloud 2023。

架构篇

基于Spring Boot单应用脚手架mall-tiny,循序渐进地搭建一个mall-swarm项目在使用的微服务项目脚手架。

K8S篇

全面讲解Kubernetes的使用,基于企业级容器管理平台KubeSphere,实现mall-swarm项目在Kubernetes环境下的部署。

Extension points exported contracts — how you extend this code

UserService (Interface)
@auther macrozheng @description OpenFeign远程调用user-service的业务类 @date 2023/11/30 @github https://github.com/macrozheng [17 …
feign-service/src/main/java/com/macro/cloud/service/UserService.java
OrderDao (Interface)
@auther macrozheng @description 订单管理Dao @date 2023/12/8 @github https://github.com/macrozheng [32 implementers]
micro-seata/seata-order-service/src/main/java/com/macro/cloud/dao/OrderDao.java
UserService (Interface)
@auther macrozheng @description 用户管理Service @date 2023/11/30 @github https://github.com/macrozheng [17 implementers]
nacos-user-service/src/main/java/com/macro/cloud/service/UserService.java
IErrorCode (Interface)
@auther macrozheng @description 封装API的错误码 @date 2019/4/19 @github https://github.com/macrozheng [32 implementers]
mall-tiny-k8s/src/main/java/com/macro/mall/tiny/common/api/IErrorCode.java
IErrorCode (Interface)
封装API的错误码 Created by macro on 2019/4/19. [32 implementers]
authorization-server/src/main/java/com/macro/cloud/api/IErrorCode.java
UserService (Interface)
@auther macrozheng @description OpenFeign远程调用user-service的业务类 @date 2023/11/30 @github https://github.com/macrozheng [17 …
circuit-breaker-service/src/main/java/com/macro/cloud/service/UserService.java
IErrorCode (Interface)
封装API的错误码 Created by macro on 2019/4/19. [32 implementers]
micro-sas/sas-resource-server/src/main/java/com/macro/cloud/api/IErrorCode.java
IErrorCode (Interface)
封装API的错误码 Created by macro on 2019/4/19. [32 implementers]
micro-sas/sas-authorization-server/src/main/java/com/macro/cloud/api/IErrorCode.java

Core symbols most depended-on inside this repo

addCriterion
called by 128
mall-tiny-k8s/src/main/java/com/macro/mall/tiny/mbg/model/PmsBrandExample.java
addCriterion
called by 128
mall-tiny-springdoc/src/main/java/com/macro/mall/tiny/mbg/model/PmsBrandExample.java
addCriterion
called by 128
mall-tiny-sa-token/src/main/java/com/macro/mall/tiny/mbg/model/PmsBrandExample.java
getCode
called by 79
mall-tiny-sa-token/src/main/java/com/macro/mall/tiny/common/api/IErrorCode.java
getMessage
called by 63
mall-tiny-sa-token/src/main/java/com/macro/mall/tiny/common/api/IErrorCode.java
getUser
called by 16
eureka-user-service/src/main/java/com/macro/cloud/service/UserService.java
getByUsername
called by 13
eureka-user-service/src/main/java/com/macro/cloud/service/UserService.java
create
called by 12
eureka-user-service/src/main/java/com/macro/cloud/service/UserService.java

Shape

Method 1,682
Class 299
Interface 42
Enum 10

Languages

Java100%

Modules by API surface

mall-tiny-springdoc/src/main/java/com/macro/mall/tiny/mbg/model/PmsBrandExample.java157 symbols
mall-tiny-sa-token/src/main/java/com/macro/mall/tiny/mbg/model/PmsBrandExample.java157 symbols
mall-tiny-k8s/src/main/java/com/macro/mall/tiny/mbg/model/PmsBrandExample.java157 symbols
mall-tiny-springdoc/src/main/java/com/macro/mall/tiny/mbg/model/PmsBrand.java24 symbols
mall-tiny-sa-token/src/main/java/com/macro/mall/tiny/mbg/model/PmsBrand.java24 symbols
mall-tiny-k8s/src/main/java/com/macro/mall/tiny/mbg/model/PmsBrand.java24 symbols
mall-tiny-springdoc/src/main/java/com/macro/mall/tiny/mbg/mapper/PmsBrandMapper.java15 symbols
mall-tiny-sa-token/src/main/java/com/macro/mall/tiny/mbg/mapper/PmsBrandMapper.java15 symbols
mall-tiny-k8s/src/main/java/com/macro/mall/tiny/mbg/mapper/PmsBrandMapper.java15 symbols
micro-sas/sas-authorization-server/src/main/java/com/macro/cloud/config/AuthorizationServerConfig.java14 symbols
authorization-server/src/main/java/com/macro/cloud/config/AuthorizationServerConfig.java14 symbols
resource-server/src/main/java/com/macro/cloud/api/CommonResult.java13 symbols

Dependencies from manifests, versioned

cn.dev33:sa-token-jwt
cn.dev33:sa-token-reactor-spring-boot3-starter
cn.dev33:sa-token-redis-jackson
cn.dev33:sa-token-spring-boot3-starter
cn.hutool:hutool-all
com.alibaba.cloud:spring-cloud-alibaba-dependencies
com.alibaba.cloud:spring-cloud-starter-alibaba-nacos-config
com.alibaba.cloud:spring-cloud-starter-alibaba-nacos-discovery
com.alibaba.cloud:spring-cloud-starter-alibaba-seata
com.alibaba.cloud:spring-cloud-starter-alibaba-sentinel
com.alibaba.csp:sentinel-datasource-nacos
com.alibaba:druid-spring-boot-starter

Datastores touched

(mysql)Database · 1 repos
mall_tinyDatabase · 1 repos
authorization-serverDatabase · 1 repos
mallDatabase · 1 repos
seata-accountDatabase · 1 repos
seata-orderDatabase · 1 repos
seata-serverDatabase · 1 repos
seata-storageDatabase · 1 repos

For agents

$ claude mcp add springcloud-learning \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact