JdbcSessionAutoConfiguration may not match when using the auto-configured DataSource by candrews · Pull Request #48552 · spring-projects/spring-boot

@candrews

JdbcSessionAutoConfiguration is conditional on the DataSource bean which won't exist until after DataSourceAutoConfiguration; therefore, JdbcSessionAutoConfiguration must autoconfigure after DataSourceAutoConfiguration.

Signed-off-by: Craig Andrews <candrews@integralblue.com>

@wilkinsona wilkinsona changed the title JdbcSessionAutoConfiguration after DataSourceAutoConfiguration JdbcSessionAutoConfiguration may not match when using the auto-configured DataSource

Dec 16, 2025

wilkinsona pushed a commit that referenced this pull request

Dec 17, 2025
JdbcSessionAutoConfiguration is conditional on the DataSource bean
which won't exist until after DataSourceAutoConfiguration; therefore,
JdbcSessionAutoConfiguration must auto-configure after
DataSourceAutoConfiguration.

Signed-off-by: Craig Andrews <candrews@integralblue.com>

See gh-48552

This was referenced

Jan 15, 2026