- 博客(2)
- 收藏
- 关注
原创 Spring 监听事件Demo
####本篇文章主要介绍spring 监听事件 同步和异步的方法1:先定义一个事件本身 extends ApplicationEvent类 代码如下:/** * 事件类 */@Setter@Getter@ToStringpublic class IEvent extends ApplicationEvent { private Long id; private String name; /** * Create a new ApplicationEvent.
2020-08-26 15:30:55
300
原创 springboot实现mqtt发布订阅 外加redis 发布订阅功能
简单的demo版话不多说直接上代码:mqtt学习文档 https://docs.emqx.io/tutorial/v3/cn/quick_start/whats_mqtt.htmlpom.xml <!--mqtt--> <!-- MQTT-jar --> <dependency> <groupId>org.eclipse.paho</groupId> &l
2020-08-24 16:26:07
936
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人