You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
spring.jpa.defer-datasource-initialization=true needs to be added to application.properties, otherwise the data.sql will not be executed when spring boot starts.
Add drop table if exists {tablename} cascade; before every create table statement. Change {tablename} to the name of the table being created. This can avoid some problems caused by tables still existing in the memory.
The Type type field of Ingredient entity class should be annotated with @Enumerated(EnumType.STRING), otherwise you'll probably encounter NumberFormatException.
The text was updated successfully, but these errors were encountered:
spring.jpa.defer-datasource-initialization=true
needs to be added to application.properties, otherwise the data.sql will not be executed when spring boot starts.drop table if exists {tablename} cascade;
before every create table statement. Change {tablename} to the name of the table being created. This can avoid some problems caused by tables still existing in the memory.Type type
field ofIngredient
entity class should be annotated with@Enumerated(EnumType.STRING)
, otherwise you'll probably encounter NumberFormatException.The text was updated successfully, but these errors were encountered: