title: How to replace default hikari cp to tomcat pool on spring boot 2.0
body: <p>I have migrated spring boot application to 2.0 and found out some problems with hikari connection pool. When I am fetching database data this results to hikari cp timeout ie. connection is not available. I don't know why when in the previous version this worked correctly.</p>
  
  <p>Therefore I tried to use tomcat pool with this config in <code>application.yml</code> but it did not work (in correct YAML formatting).</p>
  
  <pre><code>spring.datasource.type=org.apache.tomcat.jdbc.pool.DataSource
  </code></pre>
  
  <p>My pom.xml has these dependencies related to DB things:</p>
  
  <pre><code>spring-boot-jpa
  spring-boot-jdbc
  jdbc7
  </code></pre>
  
  <p>How to exclude hikari and use tomcat connection pool?</p>