title: Spring Boot 2: How to configure HikariCP using application.properties file
body: <p>I am relatively new to Spring and Spring Boot but I can't seem to find a guide on how to create an app using Spring Boot, Flyway, and Spring Boot JPA that will actually run on my machine. I always end up with the same issue:</p>
  
  <pre><code>Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: dataSource or dataSourceClassName or jdbcUrl is required.
  </code></pre>
  
  <p>I am trying to fully configure HikariCP through the application.properties file, but I can't seem to find a way. Any help is extremely appriciated.</p>
  
  <p>My full stack trace and relevant Java code and application.properties files are in this gist:</p>
  
  <p><a href="https://gist.github.com/anonymous/cb309a836ddae36f5e401697f763dde5" rel="nofollow noreferrer">https://gist.github.com/anonymous/cb309a836ddae36f5e401697f763dde5</a></p>