Spring Boot FlyWay не делает Insert, но таблицы создаёт

application.properties

# ## Local db filestore: in base directory in folder "data"
spring.datasource.url=jdbc:h2:~/shop;DB_CLOSE_ON_EXIT=FALSE;AUTO_SERVER=TRUE
spring.datasource.username=sa
spring.datasource.password=

spring.datasource.driverClassName=org.h2.Driver
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.H2Dialect
# additional settings
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true

# FlyWay settings
flyway.enabled=true
flyway.url=jdbc:h2:~/shop
spring.flyway.check-location=false
spring.flyway.locations=classpath:db/migrations
flyway.baseline-on-migrate=true #used if database has some already table

Ответы (0 шт):