-
Notifications
You must be signed in to change notification settings - Fork 40.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataSource url property is ignored when there is no connection pool #19192
Comments
spring-projects-issues
added
the
status: waiting-for-triage
An issue we've not yet triaged
label
Nov 29, 2019
philwebb
added
the
for: team-attention
An issue we'd like other members of the team to review
label
Dec 2, 2019
philwebb
added
type: bug
A general bug
and removed
for: team-attention
An issue we'd like other members of the team to review
status: waiting-for-triage
An issue we've not yet triaged
labels
Dec 13, 2019
nosan
added a commit
to nosan/spring-boot
that referenced
this issue
Jan 8, 2020
…t was explicitly set see spring-projectsgh-19192
nosan
added a commit
to nosan/spring-boot
that referenced
this issue
Jan 8, 2020
…t was explicitly set see spring-projectsgh-19192
nosan
added a commit
to nosan/spring-boot
that referenced
this issue
Jan 8, 2020
…t was explicitly set see spring-projectsgh-19192
nosan
added a commit
to nosan/spring-boot
that referenced
this issue
Jan 8, 2020
…t was explicitly set see spring-projectsgh-19192
nosan
added a commit
to nosan/spring-boot
that referenced
this issue
Jan 8, 2020
…t was explicitly set see spring-projectsgh-19192
nosan
added a commit
to nosan/spring-boot
that referenced
this issue
Jan 8, 2020
…t was explicitly set see spring-projectsgh-19192
nosan
added a commit
to nosan/spring-boot
that referenced
this issue
Jan 9, 2020
…t was explicitly set see spring-projectsgh-19192
Closing in favour of #19576. |
wilkinsona
added
the
status: superseded
An issue that has been superseded by another
label
Jan 14, 2020
nosan
added a commit
to nosan/spring-boot
that referenced
this issue
Jan 22, 2020
…t was explicitly set see spring-projectsgh-19192
nosan
added a commit
to nosan/spring-boot
that referenced
this issue
Jan 22, 2020
snicoll
removed
the
status: superseded
An issue that has been superseded by another
label
Feb 18, 2020
This was referenced Feb 18, 2020
Thanks for fixing this @snicoll. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When there are multiple drivers on the classpath (e.g. h2 and postgres) and no connection pool is present. Then
spring.datasource.url
is not used, instead the embedded database is used.I would expect that the datasource that is created is connected with the provided datasource URL.
I was debugging this a bit and from the
DataSourceAutoConfiguration
thePooledDataSourceConfiguration
is not active since there is no connection pool. This means thatEmbeddedDatabaseConfiguration
would be active leading toEmbeddedDataSourceConfiguration
to create the datasource and that one then createsEmbeddedDatabase
.This has clearly been an error on our side (forgetting to add the connection pool).
I'd suggest that the
EmbeddedDataSourceConfiguration
is actually renamed toNonPooledDataSourceConfiguration
and then based on whether a datasource url is defined or not aSimpleDriverDataSource
is used or the current behaviour is kept.The text was updated successfully, but these errors were encountered: