事件总线 用到的注解:@RefreshScope,目的通过发送通知刷新内容

类似android eventbus 不过这里需要用到两个服务来做消息的发送和接受

rabbitmq 默认用户名密码 guest 调用方法:http://localhost:8882/bus/refresh
链路追踪,用到的注解:@EnableZipkinServer
用restTemplate 来调用服务,消费服务

配置:



事件总线 用到的注解:@RefreshScope,目的通过发送通知刷新内容
类似android eventbus 不过这里需要用到两个服务来做消息的发送和接受
rabbitmq 默认用户名密码 guest 调用方法:http://localhost:8882/bus/refresh
链路追踪,用到的注解:@EnableZipkinServer
用restTemplate 来调用服务,消费服务
配置:
本文标题:spring cloud 学习笔记三
本文链接:https://www.haomeiwen.com/subject/phzcdxtx.html
网友评论