I started making a simple spring boot application.
My first step was to make use of Spring JDBC support, with default H2 in-memory database. For sample data, I had schema.sql and data.sql in src/main/resources.
So when spring launches, it also executes these 2 scripts and populate H2 database, which I can access via H2 console.
All works fine, and I can test correct data being returned by controllers.
Then I added JPA support by adding:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
But ever since, those 2 scripts(schema.sql, data.sql) are no more executed.
Does JPA dependency cause it? And what is the workaround to make it work?