paascloud-master
spring cloud + vue + oAuth2.0全家桶实战,前后端分离模拟商城,完整的购物流程、后端运营平台,可以实现快速搭建企业级微服务项目。支持微信登录等三方登录。
Top Related Projects
Spring Cloud Alibaba provides a one-stop solution for application development for the distributed solutions of Alibaba middleware.
基于SpringCloud2.1的微服务开发脚手架,整合了spring-security-oauth2、nacos、feign、sentinel、springcloud-gateway等。服务治理方面引入elasticsearch、skywalking、springboot-admin、zipkin等,让项目开发快速进入业务开发,而不需过多时间花费在架构搭建上。持续更新中
mall项目是一套电商系统,包括前台商城系统及后台管理系统,基于SpringBoot+MyBatis实现,采用Docker容器化部署。 前台商城系统包含首页门户、商品推荐、商品搜索、商品展示、购物车、订单流程、会员中心、客户服务、帮助中心等模块。 后台管理系统包含商品管理、订单管理、会员管理、促销管理、运营管理、内容管理、统计报表、财务管理、权限管理、设置等模块。
《史上最简单的Spring Cloud教程源码》
基于SpringBoot2.x、SpringCloud和SpringCloudAlibaba并采用前后端分离的企业级微服务多租户系统架构。并引入组件化的思想实现高内聚低耦合,项目代码简洁注释丰富上手容易,适合学 习和企业中使用。真正实现了基于RBAC、jwt和oauth2的无状态统一权限认证的解决方案,面向互联网设计同时适合B端和C端用户,支持CI/CD多环境部署,并提供应用管理方便第三方系统接入;同时还集合各种微服务治理功能和监控功能。模块包括:企业级的认证系统、开发平台、应用监控、慢sql监控、统一日志、单点登录、Redis分布式高速缓存、配置中心、分布式任务调度、接口文档、代码生成等等。
🔥 官方推荐 🔥 RuoYi-Vue 全新 Pro 版本,优化重构所有功能。基于 Spring Boot + MyBatis Plus + Vue & Element 实现的后台管理系统 + 微信小程序,支持 RBAC 动态权限、数据权限、SaaS 多租户、Flowable 工作流、三方登录、支付、短信、商城、CRM、ERP、AI 大模型等功能。你的 ⭐️ Star ⭐️,是作者生发的动力!
Quick Overview
PaasCloud-Master is an open-source distributed microservice architecture project based on Spring Cloud. It aims to provide a complete solution for building and deploying cloud-native applications, including features like distributed transactions, service discovery, and configuration management.
Pros
- Comprehensive microservice architecture implementation
- Integrates various Spring Cloud components for a complete cloud-native solution
- Includes practical examples and best practices for distributed systems
- Provides a solid foundation for building scalable and resilient applications
Cons
- Limited documentation, especially for non-Chinese speakers
- May have a steep learning curve for developers new to microservices
- Some components might be outdated or require updates
- Lack of recent updates or active maintenance
Getting Started
To get started with PaasCloud-Master:
-
Clone the repository:
git clone https://github.com/paascloud/paascloud-master.git
-
Set up the required databases (MySQL, Redis) and configure the connection details in the application properties files.
-
Build and run the individual microservices using Maven:
cd paascloud-master mvn clean install cd paascloud-provider-uac mvn spring-boot:run
-
Repeat step 3 for other microservices (TPC, MDC, OPC) in separate terminal windows.
-
Access the services through the API gateway (typically running on port 7979).
Note: Ensure you have Java 8+, Maven, MySQL, and Redis installed on your system before starting.
Competitor Comparisons
Spring Cloud Alibaba provides a one-stop solution for application development for the distributed solutions of Alibaba middleware.
Pros of spring-cloud-alibaba
- More comprehensive and mature ecosystem, with better integration of Alibaba Cloud services
- Larger community support and more frequent updates
- Better documentation and examples for enterprise-level applications
Cons of spring-cloud-alibaba
- Steeper learning curve due to its extensive feature set
- Potentially higher resource consumption for smaller applications
- Stronger coupling with Alibaba Cloud services, which may limit flexibility
Code Comparison
spring-cloud-alibaba:
@SpringBootApplication
@EnableDiscoveryClient
public class ProviderApplication {
public static void main(String[] args) {
SpringApplication.run(ProviderApplication.class, args);
}
}
paascloud-master:
@SpringBootApplication
@EnableEurekaClient
public class PaasCloudCoreApplication {
public static void main(String[] args) {
SpringApplication.run(PaasCloudCoreApplication.class, args);
}
}
The main difference in the code snippets is the use of @EnableDiscoveryClient
in spring-cloud-alibaba versus @EnableEurekaClient
in paascloud-master, reflecting their different service discovery mechanisms.
基于SpringCloud2.1的微服务开发脚手架,整合了spring-security-oauth2、nacos、feign、sentinel、springcloud-gateway等。服务治理方面引 入elasticsearch、skywalking、springboot-admin、zipkin等,让项目开发快速进入业务开发,而不需过多时间花费在架构搭建上。持续更新中
Pros of SpringCloud
- More focused on microservices architecture and cloud-native development
- Cleaner and more modular project structure
- Better documentation and code comments
Cons of SpringCloud
- Less comprehensive feature set compared to paascloud-master
- Fewer integrated third-party services and tools
- Less emphasis on DevOps and deployment processes
Code Comparison
SpringCloud:
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
public class ProductApplication {
public static void main(String[] args) {
SpringApplication.run(ProductApplication.class, args);
}
}
paascloud-master:
@SpringBootApplication
@EnableTransactionManagement
@EnableScheduling
@EnableAsync
@EnableAspectJAutoProxy(proxyTargetClass = true)
public class PaasCloudCoreApplication {
public static void main(String[] args) {
SpringApplication.run(PaasCloudCoreApplication.class, args);
}
}
The SpringCloud example shows a more focused approach to microservices with service discovery and Feign clients enabled. The paascloud-master example includes additional features like transaction management, scheduling, and aspect-oriented programming, demonstrating its more comprehensive nature.
mall项目是一套电商系统,包括前台商城系统及后台管理系统,基于SpringBoot+MyBatis实现,采用Docker容器化部署。 前台商城系统 包含首页门户、商品推荐、商品搜索、商品展示、购物车、订单流程、会员中心、客户服务、帮助中心等模块。 后台管理系统包含商品管理、订单管理、会员管理、促销管理、运营管理、内容管理、统计报表、财务管理、权限管理、设置等模块。
Pros of mall
- More active development with frequent updates and contributions
- Comprehensive documentation and tutorials for easier onboarding
- Wider range of features, including a complete front-end implementation
Cons of mall
- Higher complexity due to its extensive feature set
- Steeper learning curve for beginners compared to paascloud-master
- Potentially more resource-intensive due to its comprehensive nature
Code Comparison
mall:
@Autowired
private UmsMemberService memberService;
@ApiOperation("获取验证码")
@GetMapping(value = "/getAuthCode")
public CommonResult getAuthCode(@RequestParam String telephone) {
return memberService.generateAuthCode(telephone);
}
paascloud-master:
@Autowired
private UacUserService uacUserService;
@PostMapping(value = "/registerUser")
@ApiOperation(httpMethod = "POST", value = "注册用户")
public Wrapper<UserRegisterDto> registerUser(@ApiParam(name = "registerDto", value = "注册用户Dto") @RequestBody UserRegisterDto registerDto) {
logger.info("注册用户. registerDto={}", registerDto);
uacUserService.register(registerDto);
return WrapMapper.ok(registerDto);
}
Both projects use Spring Boot and follow similar coding patterns, but mall tends to have more concise and focused controller methods, while paascloud-master includes more detailed logging and wrapper classes for responses.
《史上最简单的Spring Cloud教程源码》
Pros of SpringCloudLearning
- More focused on learning and educational purposes
- Simpler structure, making it easier for beginners to understand
- Includes detailed explanations and comments in the code
Cons of SpringCloudLearning
- Less comprehensive than paascloud-master in terms of features
- May not be suitable for production-level applications
- Limited to basic Spring Cloud concepts
Code Comparison
SpringCloudLearning:
@SpringBootApplication
@EnableEurekaServer
public class EurekaServerApplication {
public static void main(String[] args) {
SpringApplication.run(EurekaServerApplication.class, args);
}
}
paascloud-master:
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@EnableScheduling
@EnableAsync
public class PaasCloudCoreServiceApplication {
public static void main(String[] args) {
SpringApplication.run(PaasCloudCoreServiceApplication.class, args);
}
}
The code comparison shows that SpringCloudLearning focuses on basic Spring Cloud concepts like Eureka Server, while paascloud-master incorporates more advanced features such as Feign clients, scheduling, and asynchronous processing.
基于SpringBoot2.x、SpringCloud和SpringCloudAlibaba并采用前后端分离的企业级微服务多租户系统架构。并引入组 件化的思想实现高内聚低耦合,项目代码简洁注释丰富上手容易,适合学习和企业中使用。真正实现了基于RBAC、jwt和oauth2的无状态统一权限认证的解决方案,面向互联网设计同时适合B端和C端用户,支持CI/CD多环境部署,并提供应用管理方便第三方系统接入;同时还集合各种微服务治理功能和监控功能。模块包括:企业级的认证系统、开发平台、应用监控、慢sql监控、统一日志、单点登录、Redis分布式高速缓存、配置中心、分布式任务调度、接口文档、代码生成等等。
Pros of microservices-platform
- More active development with frequent updates and contributions
- Comprehensive documentation and examples for easier adoption
- Broader range of integrated tools and services (e.g., Sentinel, Seata)
Cons of microservices-platform
- Higher complexity due to more components and integrations
- Steeper learning curve for developers new to microservices architecture
- Potentially higher resource requirements for deployment
Code Comparison
paascloud-master:
@EnableEurekaClient
@EnableFeignClients
@EnableSwagger2Doc
@EnableAspectJAutoProxy(proxyTargetClass = true)
@SpringBootApplication
public class PaasCloudCoreApplication {
public static void main(String[] args) {
SpringApplication.run(PaasCloudCoreApplication.class, args);
}
}
microservices-platform:
@EnableDiscoveryClient
@EnableFeignClients
@EnableHystrix
@SpringBootApplication
@EnableAspectJAutoProxy(proxyTargetClass = true)
public class CentralApplication {
public static void main(String[] args) {
SpringApplication.run(CentralApplication.class, args);
}
}
The code comparison shows similar Spring Boot application setups, with microservices-platform using more recent annotations like @EnableDiscoveryClient
and @EnableHystrix
for enhanced service discovery and fault tolerance.
🔥 官方推荐 🔥 RuoYi-Vue 全新 Pro 版本,优化重构所有功能。基于 Spring Boot + MyBatis Plus + Vue & Element 实现的后台管理 系统 + 微信小程序,支持 RBAC 动态权限、数据权限、SaaS 多租户、Flowable 工作流、三方登录、支付、短信、商城、CRM、ERP、AI 大模型等功能。你的 ⭐️ Star ⭐️,是作者生发的动力!
Pros of ruoyi-vue-pro
- More active development with frequent updates and contributions
- Comprehensive documentation and extensive examples
- Better integration with modern frontend technologies (Vue.js 3)
Cons of ruoyi-vue-pro
- Steeper learning curve due to more complex architecture
- Potentially overkill for smaller projects
- Less focus on microservices compared to paascloud-master
Code Comparison
ruoyi-vue-pro:
@PreAuthorize("@ss.hasPermission('system:user:update')")
@Log(title = "用户管理", businessType = BusinessType.UPDATE)
@PutMapping("/update")
public AjaxResult update(@Validated @RequestBody SysUser user) {
userService.checkUserAllowed(user);
userService.updateUser(user);
return AjaxResult.success();
}
paascloud-master:
@PostMapping(value = "/updateUser")
@ApiOperation(httpMethod = "POST", value = "更新用户信息")
public Wrapper<UserVo> updateUser(@ApiParam(name = "updateUserDto", value = "更新用户信息") @RequestBody UpdateUserDto updateUserDto) {
logger.info("updateUser - 更新用户信息. updateUserDto={}", updateUserDto);
UserVo userVo = uacUserService.updateUser(updateUserDto);
return WrapMapper.ok(userVo);
}
Both repositories provide similar functionality for updating user information, but ruoyi-vue-pro includes additional security checks and logging features.
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual CopilotREADME
Spring Cloud å®æ项ç®
项ç®ä»ç»
åè½ç¹ï¼
模æååï¼å®æ´çè´ç©æµç¨ãå端è¿è¥å¹³å°å¯¹å端ä¸å¡çæ¯æï¼å对项ç®çè¿ç»´ï¼æå项ççæ§ææ åè¿ç»´ææ ã
ææ¯ç¹ï¼
æ ¸å¿ææ¯ä¸ºspringcloud+vue两个å
¨å®¶æ¡¶å®ç°ï¼éåäºåèªå¼æºç¨äºå¼æºçç®æ ï¼æ以è½ç¨å¼æºç»ä¸ç¨æ¶è´¹æ¡æ¶ï¼æ´ä½ææ¯æ åªæ
é¿éäºçä¿¡æå¡æ¯æ¶è´¹çï¼é½æ¯ç®åjavaåç»æ§çæ¡æ¶ï¼å¯ä»¥ä¸ºä¸å°ä¼ä¸è§£å³å¾®æå¡æ¶æé¾é¢ï¼å¯ä»¥å¸®å©ä¼ä¸å¿«é建ç«ãç±äºæå¡
å¨ææ¬è¾é«ï¼å°½ééä½å¼åææ¬çååï¼æ¬é¡¹ç®ç±10个å端项ç®å3个å端项ç®å
±åç»æãçæ£å®ç°äºåºäºRBACãjwtåoauth2ç
æ ç¶æç»ä¸æé认è¯ç解å³æ¹æ¡ï¼å®ç°äºå¼å¸¸åæ¥å¿çç»ä¸ç®¡çï¼å®ç°äºMQè½å°ä¿è¯100%å°è¾¾ç解å³æ¹æ¡ã
æ ¸å¿æ¡æ¶ï¼springcloud Edgwareå
¨å®¶æ¡¶
å®å
¨æ¡æ¶ï¼Spring Security Spring Cloud Oauth2
åå¸å¼ä»»å¡è°åº¦ï¼elastic-job
æä¹
å±æ¡æ¶ï¼MyBatisãéç¨Mapper4ãMybatis_PageHelper
æ°æ®åºè¿æ¥æ± ï¼Alibaba Druid
æ¥å¿ç®¡çï¼Logback å端æ¡æ¶ï¼Vueå
¨å®¶æ¡¶ä»¥åç¸å
³ç»ä»¶
ä¸æ¹æå¡ï¼ é®ä»¶æå¡ãé¿éäºçä¿¡æå¡ãä¸çäºæ件æå¡ãééæºå¨äººæå¡ãé«å¾·å°å¾API
å¹³å°ç®å½ç»æ说æ
ââpaascloud-master----------------------------ç¶é¡¹ç®ï¼å
Œ
±ä¾èµ
â â
â ââpaascloud-eureka--------------------------å¾®æå¡æ³¨åä¸å¿
â â
â ââpaascloud-discovery-----------------------å¾®æå¡é
ç½®ä¸å¿
â â
â ââpaascloud-monitor-------------------------å¾®æå¡çæ§ä¸å¿
â â
â ââpaascloud-zipkin--------------------------å¾®æå¡æ¥å¿ééä¸å¿
â â
â ââpaascloud-gateway--------------------------å¾®æå¡ç½å
³ä¸å¿
â â
â ââpaascloud-provider
â â â
â â ââpaascloud-provider-mdc------------------æ°æ®æå¡ä¸å¿
â â â
â â ââpaascloud-provider-omc------------------订åæå¡ä¸å¿
â â â
â â ââpaascloud-provider-opc------------------对æ¥æå¡ä¸å¿
â â â
â â ââpaascloud-provider-tpc------------------ä»»å¡æå¡ä¸å¿
â â â
â â ââpaascloud-provider-uac------------------ç¨æ·æå¡ä¸å¿
â â
â ââpaascloud-provider-api
â â â
â â ââpaascloud-provider-mdc-api------------------æ°æ®æå¡ä¸å¿API
â â â
â â ââpaascloud-provider-omc-api------------------订åæå¡ä¸å¿API
â â â
â â ââpaascloud-provider-opc-api------------------对æ¥æå¡ä¸å¿API
â â â
â â ââpaascloud-provider-tpc-api------------------ä»»å¡æå¡ä¸å¿API
â â â
â â ââpaascloud-provider-sdk-api------------------å¯é æ¶æ¯æå¡API
â â â
â â ââpaascloud-provider-uac-api------------------ç¨æ·æå¡ä¸å¿API
â â
â ââpaascloud-common
â â â
â â ââpaascloud-common-base------------------å
Œ
±POJOåºç¡å
â â â
â â ââpaascloud-common-config------------------å
Œ
±é
ç½®å
â â â
â â ââpaascloud-common-core------------------å¾®æå¡æ ¸å¿ä¾èµå
â â â
â â ââpaascloud-common-util------------------å
Œ
±å·¥å
·å
â â â
â â ââpaascloud-common-zk------------------zookeeperé
ç½®
â â â
â â ââpaascloud-security-app------------------å
Œ
±æ ç¶æå®å
¨è®¤è¯
â â â
â â ââpaascloud-security-core------------------å®å
¨æå¡æ ¸å¿å
â â â
â â ââpaascloud-security-feign------------------åºäºauth2çfeigné
ç½®
â â
â ââpaascloud-generator
â â â
â â ââpaascloud-generator-mdc------------------æ°æ®æå¡ä¸å¿Mybatis Generator
â â â
â â ââpaascloud-generator-omc------------------æ°æ®æå¡ä¸å¿Mybatis Generator
â â â
â â ââpaascloud-generator-opc------------------æ°æ®æå¡ä¸å¿Mybatis Generator
â â â
â â ââpaascloud-generator-tpc------------------æ°æ®æå¡ä¸å¿Mybatis Generator
â â â
â â ââpaascloud-generator-uac------------------æ°æ®æå¡ä¸å¿Mybatis Generator
ç¹æ®è¯´æ
è¿éåä¸ä¸ªè§£éç±äºå¾®æå¡çæååå¶äºæå¡å¨ï¼è¿éæåäºå¾®æå¡çå并ï¼æ¯å¦OAuth2ç认è¯æå¡ä¸å¿åç¨æ·ä¸å¿å并ï¼
ç»ä¸çone serviceæå¡ä¸å¿åç¨æ·è®¤è¯ä¸å¿å并ï¼æ¯ä»ä¸å¿å订åä¸å¿å并ï¼å
¶å®è¿ä¹æ¯ä¸å¾å·²è为ä¹ï¼
åªæ¯åäºä¸å¡å¾®æå¡ä¸å¿çå并ï¼å¹¶æ²¡æå°æ¶æä¸ç 注åä¸å¿ çæ§ä¸å¿ æå¡åç°ä¸å¿è¿è¡å并ã
ä½è ä»ç»
Spring Cloud ç±å¥½è
,ç°å°±ä»»äºé²æä¾åºé¾å¹³å°ç åé¨.
QQ群交æµ
â ï¼519587831ï¼æ»¡ï¼
â¡ï¼873283104ï¼æ»¡ï¼
â¢ï¼882458726ï¼æ»¡ï¼
â£ï¼693445268
â¤ï¼813682656
â¥ï¼797334670
â¦ï¼797876073
â§ï¼814712305
â¨ï¼â¦â¦
FAQ
é å¥é¡¹ç®
å端项ç®ï¼https://github.com/paascloud/paascloud-master
https://gitee.com/paascloud/paascloud-master
ç»å½å
¥å£ï¼https://github.com/paascloud/paascloud-login-web
https://gitee.com/paascloud/paascloud-login-web
å端å
¥å£ï¼https://github.com/paascloud/paascloud-admin-web
https://gitee.com/paascloud/paascloud-admin-web
å端å
¥å£ï¼https://github.com/paascloud/paascloud-mall-web
https://gitee.com/paascloud/paascloud-mall-web
ä¼ éé¨
- åå®¢å ¥å£ï¼ http://blog.paascloud.net
- åç«¯å ¥å£ï¼ http://admin.paascloud.net (æ¯æ微信ç»å½ä½éª)
- 模æåå: http://mall.paascloud.net (æ¯æ微信ç»å½ä½éª)
- ææ¡£æå: http://document.paascloud.net
- github: https://github.com/paascloud
- æä½æå: http://blog.paascloud.net/2018/06/10/paascloud/doc/
æ¶æå¾
Top Related Projects
Spring Cloud Alibaba provides a one-stop solution for application development for the distributed solutions of Alibaba middleware.
基于SpringCloud2.1的微服务开发脚手架,整合了spring-security-oauth2、nacos、feign、sentinel、springcloud-gateway等。服务治理方面引入elasticsearch、skywalking、springboot-admin、zipkin等,让项目开发快速进入业务开发,而不需过多时间花费在架构搭建上。持续更新中
mall项目是一套电商系统,包括前台商城系统及后台管理系统,基于SpringBoot+MyBatis实现,采用Docker容器化部署。 前台商城系统包含首页门户、商品推荐、商品搜索、商品展示、购物车、订单流程、会员中心、客户服务、帮助中心等模块。 后台管理系统包含商品管理、订单管理、会员管理、促销管理、运营管理、内容管理、统计报表、财务管理、权限管理、设置等模块。
《史上最简单的Spring Cloud教程源码》
基于SpringBoot2.x、SpringCloud和SpringCloudAlibaba并采用前后端分离的企业级微服务多租户系统架构。并引入组件化的思想实现高内聚低耦合,项目代码简洁注释丰富上手容易,适合学习和企业中使用。真正实现了基于RBAC、jwt和oauth2的无状态统一权限认证的解决方案,面向互联网设计同时适合B端和C端用户,支持CI/CD多环境部署,并提供应用管理方便第三方系统接入;同时还集合各种微服务治理功能和监控功能。模块包括:企业级的认证系统、开发平台、应用监控、慢sql监控、统一日志、单点登录、Redis分布式高速缓存、配置中心、分布式任务调度、接口文档、代码生成等等。
🔥 官方推荐 🔥 RuoYi-Vue 全新 Pro 版本,优化重构所有功能。基于 Spring Boot + MyBatis Plus + Vue & Element 实现的后台管理系统 + 微信小程序,支持 RBAC 动态权限、数据权限、SaaS 多租户、Flowable 工作流、三方登录、支付、短信、商城、CRM、ERP、AI 大模型等功能。你的 ⭐️ Star ⭐️,是作者生发的动力!
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual Copilot