I’m trying to set up a data source for a H2 embedded database in a Spring project, but when I try to log in via https://localhost:8080/h2-console there’s no way I can log in as it says the DB is not created. Nevertheless when I type the properties manually in the
application.properties
it works 😞. Also, I’d like to insert some data into a table in that DB as soon as the app is started. I created some insert statements into a
data.sql
file in the
resources
file but I nothing is inserted (edited)
stackoverflow 1
K 1
b
Ben Madore
12/09/2020, 4:11 PM
type which properties manually into
application.properties
?
Ben Madore
12/09/2020, 4:12 PM
personally i always use liquibase to manage deploying schema / data into my h2 instances