🍰 体验 SpringCloud 的一个 repo
run with module eureka-server -> com.xiaoping.EurekaServerApp
run with module service-hi -> com.xiaoping.ServerHiApp
Out:
hi, Spring from port: 8762
开启第二个 service-hi 的实例,达到集群的目的,修改 application.yml 的 server.port 为 8763,再启动一次 com.xiaoping.ServerHiApp
Out:
hi, Spring from port: 8763
run with module service-ribbon -> com.xiaoping.ServerRibbonApp
Out:
hi, Spring from port: 8762 or hi, Spring from port: 8763
run with module service-feign -> com.xiaoping.ServerFeignApp
Out:
hi, Spring from port: 8762 or hi, Spring from port: 8763
run with module service-zuul -> com.xiaoping.ServerZuulApp
Out:
hi, Spring from port: 8762 or hi, Spring from port: 8763
run with module config-server -> com.xiaoping.ConfigServerApp
Out:
{
"name": "version",
"profiles": [
"dev"
],
"label": null,
"version": "b21bb51a2609b599de933804bcc0de8a06f4d7cd",
"state": null,
"propertySources": [
]
}
run with module config-client -> com.xiaoping.ConfigClientApp
Out:
1.0.0
更新配置后 POST 请求配置好的 /actuator/bus-refresh,可以读到最新的配置信息
Out:
1.0.1
java -jar zipkin-server-2.12.1-exec.jar
