我有以下application.yml:
spring:
profiles: test
jpa:
hibernate:
dialect: org.hibernate.dialect.H2Dialect
generate-ddl: true
ddl-auto: true
datasource:
url: jdbc:h2:mem:test_db;MODE=MSSQLServer
username: sa
password:
data: data.sql
continue-on-error: true
flyway:
enabled: false
以及以下项目结构:
但是在启动时不会调用data.sql