According to this documentation:
29.1.1 Embedded Database Support
Spring Boot can auto-configure embedded H2, HSQL and Derby databases. You don’t need to provide any connection URLs, simply include a build dependency to the embedded database that you want to use.
and
29.1.2 Connection to a production database
Production database connections can also be auto-configured using a pooling DataSource.
DataSource configuration is controlled by external configuration properties in spring.datasource.*. For example, you might declare the following section in application.properties:
spring.datasource.url=jdbc:mysql://localhost/test
spring.datasource.username=dbuser
spring.datasource.password=dbpass
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
[Tip] You often won’t need to specify the driver-class-name since Spring boot can deduce it for most databases from the url.
[Note] For a pooling DataSource to be created we need to be able to verify that a valid Driver class is available, so we check for that before doing anything. I.e. if you set spring.datasource.driver-class-name=com.mysql.jdbc.Driver then that class has to be loadable.
What if I placed the following in my application.properties file:
spring.datasource.url=jdbc:hsqldb:file:db/organization-db
spring.datasource.username=dbuser
spring.datasource.password=dbpass
spring.datasource.driver-class-name=org.hsqldb.jdbc.JDBCDriver
Will Spring Boot auto-configure a pooling Datasource, since I specified the spring.datasource.driver-class-name?
Or will it just create a Datasource for the embedded Database driver without connection pooling?
How do I confirm if Spring Boot is using connection pooling?
Additional connection pools can always be configured manually. If you define your own DataSource bean, auto-configuration will not occur.
I had set up Oauth2 and followed a guide and had@Bean(name = "OAuth")
@ConfigurationProperties(prefix="spring.datasource")
public DataSource secondaryDataSource() {...}
for a JDBC token store and the pool was not configured. – Pontificate