Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinhooke/a6edcfaf0142823c3640636b2812f6a0 to your computer and use it in GitHub Desktop.
Save kevinhooke/a6edcfaf0142823c3640636b2812f6a0 to your computer and use it in GitHub Desktop.
Spring boot data init options
#ignore .sql init files
spring.datasource.initialize=false
#specify which datasource init files to use, e.g. for Derby
spring.datasource.platform=derby
spring.jpa.hibernate.ddl-auto=create-drop
#init file examples:
#generic ddl file
data.sql
#init file only for derby, when spring.datasource.platform=derby
data-derby.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment