spring boot admin

这里记录一个spring cloud的模板,有的模块spring cloud eureka + spring boot admin + spring cloud zuul + 一个普通spring cloud服务service -Agit

eureka-server:注册中心,api-gateway:网关,Admin-Server:spring boot admin的服务端,Service-A:普通服务Agithub

一、注册中心spring

在浏览器中输入localhost:1111,而后输入waterlufei,123456就能够看到注册中心api

注册中心这一块,容许本身注册(便于adminserver监控到),关闭服务安全保护,开启权限控制浏览器

二、普通服务安全

访问localhost:4445/test能返回接口数据hahah,访问localhost:4445可以看到咱们本身写的主页性能

三、服务网关日志

访问localhost:2222/api-a/test能返回接口数据hahah,访问localhost:2222/api-a/可以看到咱们本身写的主页,实现了经过网关访问server

四、admin服务端blog

访问localhost:9527,输入waterlufei,9527可以看到性能监控页面

 

 

 

 随便点进去一个能够看到服务的各类性能日志等

 

须要注意的:

1.若是须要看到log选项,须要在服务的配置文件中,指定生成日志文件

2.admin-server指定的服务名称必须都是小写

github源码地址:https://github.com/waterlufei/spring-cloud

相关文章
相关标签/搜索