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