# confetti-api **Repository Path**: wldddd/confetti-api ## Basic Information - **Project Name**: confetti-api - **Description**: SpringCloud - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-01-20 - **Last Updated**: 2024-06-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: Java, SpringCloud, RabbitMQ ## README # 简介 此项目为[confetti-web](https://gitee.com/wldddd/confetti-web) 和 [confetti-admin](https://gitee.com/wldddd/confetti-admin) 的后台接口,提供了一系列api以供app使用,项目主要用到了SpringCloud Alibaba及其相关组件构成后台核心架构。

简体中文 | [English](./README.en.md) --- # 基本结构 ## api - [gateway 统一网关](https://gitee.com/wldddd/confetti-api/blob/master/gateway/README.md) - [user 用户服务](https://gitee.com/wldddd/confetti-api/blob/master/user/README.md) - [ws 聊天服务](https://gitee.com/wldddd/confetti-api/blob/master/ws/README.md) - [article 文章服务](https://gitee.com/wldddd/confetti-api/blob/master/article/README.md) - [cache 缓存服务](https://gitee.com/wldddd/confetti-api/blob/master/article/README.md) - [mq 消息服务](https://gitee.com/wldddd/confetti-api/blob/master/mq/README.md) - [auth 鉴权服务](https://gitee.com/wldddd/confetti-api/blob/master/auth/README.md) - [schedule 定时服务](https://gitee.com/wldddd/confetti-api/blob/master/schedule/README.md) - [monitor 监控服务](https://gitee.com/wldddd/confetti-api/blob/master/monitor/README.md) ## 公共包 - feign FeignClient - commons dto ,constant --- # 技术栈 -Java --SpringCloud --SpringBoot --SpringCloud Alibaba --SpringCloud Bus 消息总线 --SpringCloud Stream 消息驱动(直接使用rabbitMq更好) --SpringCloud Gateway 网关服务 --SpringCloud Sentinel 哨兵,流量控制、熔断降级、系统负载保护 --SpringCloud Seata 分布式事务 --SpringCloud Sleuth && Zipkin 链路监控 --Nacos 服务注册,配置 --OpenFeign 服务之间调用 --Mybatis-Plus --WebSocket --JWT --redis --SpringBoot admin -服务器 --Docker --Jenkins # 所需组件 ## Nacos 前往官网下载nacos服务端 默认端口8848 持久化须知: 1.创建数据库和表 sql位置:安装目录/nacos/conf/nacos-mysql.sql 2.添加配置 配置目录:安装目录/nacos/conf/application.properties spring.datasource.platform=mysql db.num=1 db.url.0= db.user= db.password= 启动须知: 双击 安装目录/nacos/bin/startup.cmd 默认集群 单机可修改配置(windows): 修改目录:安装目录/nacos/bin/startup.cmd set MODE="cluster" 改为: rem set MODE="cluster" set MODE="standalone" ## Sentinal 前往官网下载sentinel-dashboard-1.8.1.jar 默认端口8080 启动:java -jar sentinel-dashboard-1.8.1.jar 在nocos中持久化sentinal配置(yml): sentinel: # 取消控制台懒加载 eager: true transport: dashboard: ${SENTINEL_DASHBOARD_ADDR} port: 8719 datasource: ds1: nacos: server-addr: 127.0.0.1:8848 dataId: xxx groupId: xxx data-type: json rule-type: flow ## SpringCloud Sleuth && Zipkin 前往官网下载zipkin-server-2.12.9-exec.jar 默认端口9411 启动:java -jar zipkin-server-2.12.9-exec.jar # 链路 ![链路图](http://47.102.121.70/file/zipkin.png)