Spring Boot uses an opinionated algorithm to scan for and configure a
DataSource
. This allows you to get a fully-configuredDataSource
implementation by default easily.In addition, Spring Boot automatically configures a lightning-fast connection pool, either HikariCP, Apache Tomcat, or Commons DBCP, in that order, depending on which are on the classpath.
While Spring Boot’s automatic
DataSource
configuration works very well in most cases, sometimes you’ll need a higher level of control, so you’ll have to set up your ownDataSource
implementation, hence skipping the automatic configuration process.
It is easy process, just takes your time to configure a DataSource
once you need it.