Skip to content
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

Deprecated entries within application.properties file for schema and init mode #1

Open
Vamillion opened this issue Jul 6, 2021 · 2 comments

Comments

@Vamillion
Copy link

Hi there 👋

First, I want to say thank you for these nice hands-on in combination with Spring.
I tried the tutorial by myself in combination with maven and figured out, that there was a deprecation within the application.properties file.

  1. spring.datasource.schema=classpath:sql/schema.sql
  • It seems to be: spring.sql.init.schema-locations=classpath:sql/schema.sql
  1. spring.datasource.initialization-mode=always
  • It seems to be: spring.sql.init.mode=always

Additionally, the blog entry has to be changed if you think I'm correct.

Leave a comment if you might want to discuss 😉

@antonarhipov
Copy link
Collaborator

antonarhipov commented Jul 6, 2021

Hello @Vamillion

Yes, Spring Boot 2.5 which was released recently introduced the changes. The tutorial was written with Spring Boot 2.4.1

It totally makes sense to update the demo to the newer version as well as the tutorial. Thank you!

@Vamillion
Copy link
Author

Vamillion commented Jul 6, 2021

Hello @antonarhipov

Thanks for this fast response!
I see the point.
I had to say, because of old project structures on work I had to focus on, I missed some content at Spring.
Hope I can change that soon 😉.

BTW, I pushed my own try in a repository for myself referencing your work within the README.
Hope this is not a problem for you.

Happy coding & again thanks for that work 👍
Feel free to close at any time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants