-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Various spring.datasource properties are mistakenly marked as ignored #45342
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
Comments
Hey, thanks for giving the milestones / release candidates / snapshots a try! I mistakenly thought that
|
Thanks @mhalbritter, warnings are gone with the latest snapshots 👍 |
Thanks for confirming! |
Hello everyone, just wanted to let you know: This change may fix a "bug" that production code already depends on, i. e. one of our tests failed, because the default value for spring.datasource.hikari.maximumPoolSize was expected to be "-1", but now is 10 since we migrated from SpringBoot starter 3.4.6 to 3.5.0. Not 100% sure though if this PR is actually responsible for this, because the test exists since 2023-09 and always used to be green until now. |
Hi @JanMosigItemis, |
Yeah that is what's confusing me. We only bumped dependencies and suddenly the test fails. Maybe it is a combination of multiple things. |
Spring Boot 3.4.x depends on Hikari 5.1.0. Spring Boot 3.5.0 depends on Hikari 6.3.0 (which includes changes to |
Thanks for pointing that out. Now things make sense. |
Uh oh!
There was an error while loading. Please reload this page.
Commit 8536520 in #43988 added a variety of properties to a list of ignored properties due them being "unbindable", however several of them are bindable.
I have been using the following properties just fine for years, however when building against 3.5.0 snapshots, my IDE is now giving me warnings about those properties being unknown. Note that binding them at runtime still works though:
spring.datasource.hikari.data-source-properties
, example:spring.datasource.hikari.data-source-properties.oracle.jdbc.ReadTimeout=60000
.spring.datasource.oracleucp.connection-properties
, example:spring.datasource.oracleucp.connection-properties.oracle.jdbc.ReadTimeout=60000
.I'm not using
spring.datasource.hikari.health-check-properties
, but that seems to be affected as well.I propose to review the list of ignored properties and reinstate those that are indeed bindable.
The text was updated successfully, but these errors were encountered: