kotlin-hands-on / spring-time-in-kotlin-episode1

20 stars 10 forks source link

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

Open Vamillion opened 3 years ago

Vamillion commented 3 years ago

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
  2. 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 commented 3 years ago

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 commented 3 years ago

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