- All Implemented Interfaces:
- Aware, BeanClassLoaderAware, InitializingBean
@Configuration
public class HikariDataSourceConfiguration
extends AbstractDataSourceConfiguration
Configuration for a HikariCP database pool. The HikariCP pool is a popular data source
implementation that provides high performance as well as some useful opinionated
defaults. For compatibility with other DataSource implementations accepts configuration
via properties in "spring.datasource.*", e.g. "url", "driverClassName", "username",
"password" (and some others but the full list supported by the Tomcat pool is not
applicable). Note that the Hikari team recommends using a "dataSourceClassName" and a
Properties instance (specified here as "spring.datasource.hikari.*"). This makes the
binding potentially vendor specific, but gives you full control of all the native
features in the vendor's DataSource.
- Since:
- 1.1.0
- Author:
- Dave Syer
- See Also:
DataSourceAutoConfiguration