2 Star 3 Fork 3

luohanye/spring_cloud_sample

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

功能介绍

本项目通过一个包括组织、部门、员工等服务交互的案例让刚接触spring cloud微服务的朋友快速上手搭建一个微服务工程。

技术栈

  • 配置中心:spring-cloud-config-server
  • 服务注册发现:spring-cloud-starter-netflix-eureka-server
  • api网关:spring-cloud-starter-gateway
  • api doc:springdoc-openapi
  • 模块开发: spring-boot2.6.x
  • 服务调用:open-feign

启动步骤

1.clone或下载代码到本地

2.编译通过后,依次启动:

  • config-service
  • discovery-service
  • gateway-service
  • employee-service
  • department-service
  • organization-service

3.启动完毕后,依次访问以下路径查看效果

  • 查询单个组织

http://localhost:8060/organization/1

  • 查询组织下的部门列表

http://localhost:8060/organization/1/with-departments

文章教程

https://blog.csdn.net/IndexMan/article/details/122937343

空文件

简介

springcloud+eureka+springboot2.0快速搭建微服务案例 展开 收起
Java
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/indexman/spring_cloud_sample.git
git@gitee.com:indexman/spring_cloud_sample.git
indexman
spring_cloud_sample
spring_cloud_sample
master

搜索帮助