How to load initial database data in Spring Boot

Опубликовано: 02 Май 2023
на канале: coder4life
3,817
43

In Spring Boot it is really easy to fill a database with some initial data using the data.sql file. Place this file in your resources directory and add the required SQL statements to this file. In the application properties add the statements seen in this video to run the SQL statements on startup.

► Social Media
  / coder4_life  
https://github.com/another-coder4life
  / coder4.life.code