title: How to extend Spring Boot's DataSourceAutoConfiguration
body: <p>I want to be able to leverage the Spring Boot datasource auto-configuration. However it doesn't support all the features I'm using, <code>logValidationErrors</code> in particular.</p>
  
  <pre><code>spring:
    datasource:
      driverClassName: oracle.jdbc.OracleDriver
      url: jdbc:jtds:sqlserver://111.11.11.11/DataBaseName
      username: someuser
      password: somepass
      testOnBorrow: true
      testWhileIdle: true
      validationQuery: select /* validationQuery */ 1 from dual
      minEvictableIdleTimeMillis: 1000    
      validationInterval: 30000
  </code></pre>
  
  <p>These aren't currently used:</p>
  
  <pre><code>    logValidationErrors: true
      maxAge: 1800000 # //30 Minute idle age
      removeAbondoned: true
  </code></pre>
  
  <p>Can I just grab the created DataSource bean and set those values manually? Or is there a better way to extend or wrap the autoconfiguration?</p>
  
  <p>See here for more about <code>logValidationErrors</code>, etc: <a href="https://tomcat.apache.org/tomcat-8.0-doc/jdbc-pool.html" rel="nofollow">https://tomcat.apache.org/tomcat-8.0-doc/jdbc-pool.html</a></p>