© Anghel Leonard 2020
A. LeonardSpring Boot Persistence Best Practiceshttps://doi.org/10.1007/978-1-4842-5626-8_10

10. Configuring DataSource and Connection Pool

Anghel Leonard1 
(1)
Banesti, Romania
 

Item 86: How to Customize HikariCP Settings

Spring Boot relies on HikariCP as the default connection pool.

Adding in your project spring-boot-starter-jdbc or spring-boot-starter-data-jpa "starters" will automatically add a dependency to HikariCP with the default settings.

It’s important to know how to alter the configuration of your connection pool. Most of the time, the default settings don’t satisfy the production requirements. The best way to tune the connection pool parameters for production is using FlexyPool1 by Vlad Mihalcea. FlexyPool can determine ...

Get Spring Boot Persistence Best Practices: Optimize Java Persistence Performance in Spring Boot Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.