Skip to content

Create Tomcat JDBC pool when DataSource bean is ready #7255

@izeye

Description

@izeye

Before invoking getConnection() for the first time, Tomcat JDBC pool is not created.

It would be nice to create Tomcat JDBC pool when DataSource bean is ready.

This is a sample project: https://github.com/izeye/spring-boot-throwaway-branches/tree/jdbc-mysql

This is the coordinate of the test showing this issue: https://github.com/izeye/spring-boot-throwaway-branches/blob/jdbc-mysql/src/test/java/com/izeye/throwaway/ApplicationTests.java#L38

Metadata

Metadata

Assignees

Labels

status: declinedA suggestion or change that we don't feel we should currently apply

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions