Answer the question
In order to leave comments, you need to log in
How does it load sql files into H2?
Tell me how the data is loaded here from the sql file into the H2 db
. I see only inserts in sql itself, but I don’t see that the tables would be created at startup
. I also don’t see how the data is checked here during authorization
(in the web.social.network module)
https://github.com/dmcheremisin/SpringBootSocialNetwork
Answer the question
In order to leave comments, you need to log in
Hibernate can create tables itself.
The flag in properties is responsible for this.
spring.jpa.hibernate.ddl-auto=create
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question