How to replace default hikari cp to tomcat pool on spring boot 2.0
问题 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. Therefore I tried to use tomcat pool with this config in application.yml but it did not work (in correct YAML formatting). spring.datasource.type=org.apache.tomcat.jdbc.pool.DataSource My pom.xml has these dependencies