October 2018
Intermediate to advanced
982 pages
23h 29m
English
We will use the application.yaml to configure the RabbitMQ connections. Then, we need to create a couple of properties in it and the Spring AMQP module will use that provided configuration to start the connection factory.
It is pretty simple to configure it. The final yaml file for Tracked Hashtag should look like this:
spring: rabbitmq: host: localhost username: guest password: guest port: 5672 redis: host: 127.0.0.1 port: 6379 server: port: 9090 queue: twitter: twitter-track-hashtag exchange: twitter: twitter-track-exchange routing_key: track: "*" --- spring: profiles: docker rabbitmq: host: rabbitmq username: guest password: guest port: 5672 redis: host: redis port: 6379 server: port: 9090 queue: twitter: ...
Read now
Unlock full access