When using rocketmq to send a message, you will find
@Autowired
private RocketMQTemplate rocketMQTemplate;
Failed to inject RocketMQTemplate.
The reason is that in the configuration file, we did not add
the two blue lines of code in the above figure to specify the group name to be sent . After writing, the problem is solved.