title: Spring-jms. How to customize broker url for rabbitmq?
body: <p>All examples I read related with activeMq and spring-boot has especial property to change the url of broker:</p>
  
  <pre><code>spring.activemq.broker-url=&lt;SOME_URL&gt;
  </code></pre>
  
  <p>By default it uses default settings: default url and default port.<br>
  But I use rabbirMq and I want to know how to change broker url</p>
  
  <p>I've read <a href="https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-messaging.html#boot-features-rabbitmq" rel="nofollow noreferrer">this one</a></p>
  
  <p>I've added <code>application.properties</code> to the <code>src/main/resources</code>
  with following content(host absolutely wrong, I expected to see error):</p>
  
  <pre><code>spring.rabbitmq.host=olololo
  spring.rabbitmq.port=5672
  spring.rabbitmq.username=guest
  spring.rabbitmq.password=guest
  </code></pre>
  
  <p>But it doesn't affect application.
  Looks like spring(boot) doesn't read these prioerties.</p>
  
  <h2>P.S.</h2>
  
  <p>Project structure looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/QVD5j.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QVD5j.jpg" alt="enter image description here"></a></p>