title: Spring boot + hikari - dataSource or dataSourceClassName or jdbcUrl is required issue
body: <p>I get the following error trying to start my Spring application</p>
  
  <p><code>ERROR 5908 --- [           main] com.zaxxer.hikari.HikariConfig           : HikariPool-1 - dataSource or dataSourceClassName or jdbcUrl is required.</code></p>
  
  <p>My <code>application.properties</code> file looks like this:</p>
  
  <pre><code>spring.datasource.one.jdbc-url = jdbc:postgresql://10.x.x.x:y/sampledb1
  spring.datasource.one.username = someuser
  spring.datasource.one.password = somepasswd
  spring.datasource.one.driver-class-name = org.postgresql.Driver
  
  spring.datasource.two.jdbc-url = jdbc:postgresql://10.x.x.x:z/sampledb2
  spring.datasource.two.username = someuser
  spring.datasource.two.password = somepassword
  spring.datasource.two.driver-class-name = org.postgresql.Driver
  </code></pre>
  
  <p>And I am using DataSourceBuilder class as below:</p>
  
  <pre><code>@Configuration
  public class DataSourceConfig
  {
      @Bean(name = "one")
      @Primary
      @ConfigurationProperties(prefix = "spring.datasource.one") 
      public DataSource dataSource1()
      {
          return DataSourceBuilder.create().build();
      }
  
      @Bean(name = "two")
      @ConfigurationProperties(prefix = "spring.datasource.two") 
      public DataSource dataSource2()
      {
          return DataSourceBuilder.create().build();
      }
  }
  </code></pre>
  
  <p>My pom looks like this.</p>
  
  <pre><code>    &lt;parent&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
      &lt;version&gt;2.0.4.RELEASE&lt;/version&gt;
      &lt;relativePath /&gt;
  &lt;/parent&gt;
  
  &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;java.version&gt;1.8&lt;/java.version&gt;
      &lt;avro.version&gt;1.8.2&lt;/avro.version&gt;
      &lt;maven.compiler.source&gt;1.8&lt;/maven.compiler.source&gt;
      &lt;maven.compiler.target&gt;1.8&lt;/maven.compiler.target&gt;
      &lt;version.powermock&gt;1.6.2&lt;/version.powermock&gt;
  &lt;/properties&gt;
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
          &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;artifactId&gt;log4j-over-slf4j&lt;/artifactId&gt;
                  &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;/exclusion&gt;
          &lt;/exclusions&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.mybatis.spring.boot&lt;/groupId&gt;
          &lt;artifactId&gt;mybatis-spring-boot-starter&lt;/artifactId&gt;
          &lt;version&gt;1.3.2&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;!-- actuator --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-actuator&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;!-- eureka --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;spring-cloud-starter-netflix-eureka-client&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;!-- hystrix --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;spring-cloud-starter-netflix-hystrix&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-context&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
          &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-starter-logging&lt;/artifactId&gt;
              &lt;/exclusion&gt;
          &lt;/exclusions&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-context-support&lt;/artifactId&gt;
      &lt;/dependency&gt;
       &lt;/dependencies&gt; 
  </code></pre>
  
  <p>This was working fine earlier, but now causing some issues. And the error occurs <code>intermittently</code>, sometime it starts without error, other times it fails with the error.</p>
  
  <p>I tried solutions suggested in the <a href="https://stackoverflow.com/questions/49088847/after-spring-boot-2-0-migration-jdbcurl-is-required-with-driverclassname">link</a> .They don't seem to work for me.</p>