import org.springframework.amqp.core.AmqpTemplate;
错误的发送方式
fireTemplate.convertAndSend(fireCRTEvent)
fireTemplate.convertAndSend(JSON.toJSONString(fireCRTEvent));
或者自己重写toString方法
fireTemplate.convertAndSend(fireCRTEvent.toString());
import org.springframework.amqp.core.AmqpTemplate;
错误的发送方式
fireTemplate.convertAndSend(fireCRTEvent)
fireTemplate.convertAndSend(JSON.toJSONString(fireCRTEvent));
或者自己重写toString方法
fireTemplate.convertAndSend(fireCRTEvent.toString());