V
V
Vladyslav2021-02-15 22:08:57
Java
Vladyslav, 2021-02-15 22:08:57

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

1 answer(s)
D
Dmitry Roo, 2021-02-15
@xez

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 question

Ask a Question

731 491 924 answers to any question