Sample code for using rabbitmq in spring boot
I haven't written about spring boot for a long time. I happen to be writing about spring cloud bus recently. Because the content will have some relevance, I'll fill in an article on AMQP integration first.
Introduction to message broker and AMQP
Message broker is an architecture mode of message verification, transmission and routing. Its design objectives are mainly applied to the following scenarios:
AMQP is the abbreviation of advanced message queuing protocol. It is an open standard application layer protocol for message oriented middleware. AMQP defines these characteristics:
RabbitMQ
Rabbitmq introduced in this paper is a middleware product implemented by AMQP protocol. It can support a variety of operating systems and programming languages, and can cover almost all mainstream enterprise technology platforms.
install
On the download page of rabbitmq official website https://www.rabbitmq.com/download.html In, we can get installation packages and documentation for different operating systems. Here, we will explain several common platforms one by one.
Install erland through the official download page http://www.erlang.org/downloads Get the EXE installation package, open it directly and complete the installation.
Install rabbitmq through the official download page https://www.rabbitmq.com/download.html Get the EXE installation package.
Open source China: http://git.oschina.net/didispace/SpringBoot-Learning/tree/master/Chapter5-2-1 GitHub: https://github.com/dyc87112/SpringBoot-Learning/tree/master/Chapter5-2-1