Importing Data with spring boot

后端 未结 5 1129
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-05 07:21

I have flyway and spring-boot working correctly, but I can\'t seem to wire up my spring.datasource.data correctly.

If I have a file src/main/resou

5条回答
  •  执念已碎
    2021-01-05 07:32

    Try using classpath*, like the following:

    spring.datasource.schema=classpath*:db/seeds/your_schema.sql
    spring.datasource.data=classpath*:db/seeds/one_project.sql
    

提交回复
热议问题