-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Manual metadata has an outdated reference to spring.datasource.initialization-mode #30435
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
Thanks for raising this, @goafabric.
Are you using an IDE with Spring Boot support? Netbeans (with the right plugin), Eclipse (with Spring Tools) and IntelliJ (perhaps not community edition) should all warn you when you're using deprecated properties in your application.properties or .yaml files. |
@snicoll Could this be a bug in the changelog generator? The property's marked as deprecated with a replacement in 2.7.0-M1: Lines 394 to 398 in 331ec4a
These properties should have been removed in 2.7 (following their deprecation in 2.5). I've opened #30442 for that. |
Thanks for the fast reaction .. I am using Intellij .. but the Community Edition, which unfortunately does not support application.properties |
@wilkinsona that's not a bug in the changelog generator. There is still a reference to |
During the Upgrade of 3.0-M2 I noticed a strange behaviour concerning the Rollout of Database Scripts.
While working with H2 .. they did not with PostgreSQL.
During Debugging i finally found out the root cause.
While the Changelog for M1 explictly mentions the property change for
"spring.sql.init.schema-locations"
it does NOT mention the change for
"spring.sql.init.mode"
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0.0-M1-Configuration-Changelog
This was quiet confusing and I now also found the Changelog for 2.5.0 which announced the Deprecation
of the former "spring.datasource" => "spring.sql.init" properties
But as it was only a Deprecation .. i never stumbled upon this.
So long story short .. to avoid confusion for other people,
please also document the change for
"spring.sql.init.mode=always" near the Spring Boot 3.0 Milestone
thx
The text was updated successfully, but these errors were encountered: