title: how do I get spring boot to retry when getting mysql dataSource?
body: <p>so I have a spring boot application inside docker compose, and it relies on a mysql container, the problem is it tries to open a connection before the mysql container is ready, and it crashes.</p>
  <p>I found that I can use</p>
  <pre><code>spring.datasource.hikari.initializationFailTimeout=0
  </code></pre>
  <p>in my application.properties, but only seems to make it wait for a couple of seconds longer before crashing, any ideas ?</p>