I am trying to implement RabbitMQ in my old legacy project using plain spring.
I am trying to use like this :
@Autowire
RabbitTemplate rabbitTemplate;
public void send(){
rabbitTemplate.ConvertAndSend("Hello")
}
But rabbitTemplate is getting as null.
Is there any alternative work around for this or I am missing something here ?