Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.85 KB

README.MD

File metadata and controls

42 lines (30 loc) · 1.85 KB

资料

注意事项

  1. 是用 idea 在子 module 运行程序是,user.dir 指向的是 root 工程,会导致某些问题。 可以在启动的时候修改 user.dir 或者在 idea 的运行配置修改 working directory 指向当前 module 可解决问题。 代码参考 org.springframework.boot.web.servlet.server.DocumentRoot.getCommonDocumentRoot。 该方法返回文档根路径,用于配置嵌入 web 容器。

内容整理

项目结构

spring boot 示例程序

spring boot demo

http://127.0.0.1:8080/actuator/metrics/ 可访问所有的metrics.

http://127.0.0.1:8080/browser/index.html#/actuator 可查看所有的 endpoint

Eureka 用于 Spring 管理下的 Bean 服务发现

Zuul 处理路由服务,被视为请求的 ”守门员“

Ribbon 用于动态路由和负载均衡

Hystrix 提供了断路器功能,以处理无响应的 API 调用

Turbine 提供了关于 Hystrix 的全部可用断路器的信息