feat: 新增mqtt客户端springboot服务,实现mqtt监听服务器消息
parent
4cf5b05235
commit
e5c26727ac
|
@ -14,6 +14,7 @@ import javax.annotation.PostConstruct;
|
||||||
public class ReturnCallbackConfig implements RabbitTemplate.ReturnsCallback {
|
public class ReturnCallbackConfig implements RabbitTemplate.ReturnsCallback {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|
||||||
private RabbitTemplate rabbitTemplate;
|
private RabbitTemplate rabbitTemplate;
|
||||||
|
|
||||||
@PostConstruct // @PostContruct是spring框架的注解,在⽅法上加该注解会在项⽬启动的时候执⾏该⽅法,也可以理解为在spring容器初始化的时候执
|
@PostConstruct // @PostContruct是spring框架的注解,在⽅法上加该注解会在项⽬启动的时候执⾏该⽅法,也可以理解为在spring容器初始化的时候执
|
||||||
|
|
Loading…
Reference in New Issue