# springcloud-alibaba-framework **Repository Path**: threec/springcloud-alibaba-framework ## Basic Information - **Project Name**: springcloud-alibaba-framework - **Description**: sprigcloud-alibaba 版本微服务,包括: 1. 网关 2. 认证中心 3. 业务代码 网关gateway统一异常,nacos 注册配置中心,sentinel服务熔断限流等等 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-05-08 - **Last Updated**: 2021-05-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # cloud-alibaba-framework ## 项目介绍 `cloud-alibaba-framework `是一套微服务日志收集系统,采用了 Spring Boot 2、Spring-cloud-Alibaba、MyBatis、Docker、Elasticsearch,kafka等核心技术。 ## 系统架构图 ![微服务架构](https://images.gitee.com/uploads/images/2020/0621/175648_5c7d97be_2087054.jpeg "tuling-mall商城微服务架构图.jpg") ## 组织结构 ``` pook-sdk-server 1.cloud-authcenter:微服务认证中心。采用Spring-Security框架和OAuth2协议,采用jwt认证。--待添加 2.cloud-gateway:微服务管理网关。在所有接口请求至网关时会去认证中心校验,拿私钥。并且与openFeign和sentinel整合,在网关这一层限流。 3.cloud-common:公共jar包,所有使用openFeign的引入。 4.cloud-nongwu:农污平台业务代码。 5.日志系统:采用elasticsearch+logstash+kibana+kafka 6.自动化监控:采用 Prometheus+Grafana 7.链路追踪:采用pinpoint ... 后续待添加 ``` ## 技术选型 ### 后端技术 | 技术 | 说明 | 官网 | | -------------------- | ------------------- | ------------------------------------------------------------ | | Spring Boot | 容器+MVC框架 | [https://spring.io/projects/spring-boot](https://spring.io/projects/spring-boot) | | Spring Security | 认证和授权框架 | [https://spring.io/projects/spring-security](https://spring.io/projects/spring-security) | | MyBatis | ORM框架 | [http://www.mybatis.org/mybatis-3/zh/index.html](http://www.mybatis.org/mybatis-3/zh/index.html) | | MyBatisGenerator | 数据层代码生成 | [http://www.mybatis.org/generator/index.html](http://www.mybatis.org/generator/index.html) | | PageHelper | MyBatis物理分页插件 | [http://git.oschina.net/free/Mybatis_PageHelper](http://git.oschina.net/free/Mybatis_PageHelper) | | Swagger-UI | 文档生产工具 | [https://github.com/swagger-api/swagger-ui](https://github.com/swagger-api/swagger-ui) | | Elasticsearch | 搜索引擎 | [https://github.com/elastic/elasticsearch](https://github.com/elastic/elasticsearch) | | RabbitMq | 消息队列 | [https://www.rabbitmq.com/](https://www.rabbitmq.com/) | | Redis | 分布式缓存 | [https://redis.io/](https://redis.io/) | | MongoDb | NoSql数据库 | [https://www.mongodb.com/](https://www.mongodb.com/) | | Docker | 应用容器引擎 | [https://www.docker.com/](https://www.docker.com/) | | Druid | 数据库连接池 | [https://github.com/alibaba/druid](https://github.com/alibaba/druid) | | OSS | 对象存储 | [https://github.com/aliyun/aliyun-oss-java-sdk](https://github.com/aliyun/aliyun-oss-java-sdk) | | JWT | JWT登录支持 | [https://github.com/jwtk/jjwt](https://github.com/jwtk/jjwt) | | LogStash | 日志收集 | [https://github.com/logstash/logstash-logback-encoder](https://github.com/logstash/logstash-logback-encoder) | | Lombok | 简化对象封装工具 | [https://github.com/rzwitserloot/lombok](https://github.com/rzwitserloot/lombok) | | Seata | 全局事务管理框架 | [https://github.com/seata/seata](https://github.com/seata/seata) | | Portainer | 可视化Docker容器管理| [https://github.com/portainer/portainer](https://github.com/portainer/portainer) | ## 环境搭建 ### 开发环境 工具 | 版本号 | 下载 ----|----|---- JDK | 1.8 | https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Mysql | 5.7 | https://www.mysql.com/ Redis | 3.2 | https://redis.io/download Elasticsearch | 6.2.2 | https://www.elastic.co/downloads kafka | 1.1.0 | http://kafka.apache.org/ RabbitMq | 3.7.14 | http://www.rabbitmq.com/download.html nginx | 1.10 | http://nginx.org/en/download.html ## 端口配置说明 服务名 | 端口 | 说明 ----|----|---- cloud-authcenter | 9998 | 认证中心 cloud-gateway | 9999 | 网关 cloud-nongwu | 9997 | 农污 cloud-uav | 9996 | 无人机 admin 逻辑 cloud-uav-video | 9995 | 无人机 腾讯云直播、云点播 逻辑 已废弃 写在uav 中 cloud-saas | 9990 | 无人机 腾讯云直播、云点播 逻辑 已废弃 写在uav 中