Skip to content

基于SpringCloud微服务的示例项目、出发点是写一套完整微服务架构、集成有eureka、ribbon、feign、hystrix组件等,消费端有JSP、freemarker、thymeleaf三个版本,有完整的UI、增删改查及分页,防SQL注入、XSS攻击拦截等,同时集成了shiro、swagger2等,后面会持续完善 GitHub: https://github.com/wangxinforme/sc , 开源中国: https://gitee.com/wangxinforme/sc

infowangxin/sc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sc 介绍

它是一个基于SpringCloud的分布式服务示例项目

使用组件列表:
注册中心:nacos,替代方案eureka、consul、zookeeper
配置中心: nacos ,替代方案sc config、consul config
调用:feign,替代方案:resttempate
熔断:sentinel、,替代方案:Resilience4j
熔断监控:sentinel dashboard
负载均衡:sc loadbalancer
网关:spring cloud gateway
链路:spring cloud sleuth+zipkin,替代方案:skywalking等

包含工程有:

  • sc-consumer:client端,即consumer服务消费者。
  • sc-openfeign:SpringCloud OpenFeign,声明的接口,采用的是Nacos作为注册中心。
  • sc-provider:server端,即provider服务提供端,端口是随机分配的,可以启动多个服务对ribbon验证服务负载

示例启动

  • 按顺序依次启动项目工程: sc-provider、sc-consumer

  • 访问 sc-consumer 测试验证

  • 浏览器访问 http://localhost:9999/diff/2

GitHub issues

About

基于SpringCloud微服务的示例项目、出发点是写一套完整微服务架构、集成有eureka、ribbon、feign、hystrix组件等,消费端有JSP、freemarker、thymeleaf三个版本,有完整的UI、增删改查及分页,防SQL注入、XSS攻击拦截等,同时集成了shiro、swagger2等,后面会持续完善 GitHub: https://github.com/wangxinforme/sc , 开源中国: https://gitee.com/wangxinforme/sc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages