每次我作为spring应用程序运行项目时,spring data jpa都会附加create语句,

每次我作为spring应用程序运行项目时,spring data jpa都会附加create语句,,spring,jpa,Spring,Jpa,我对SpringJPA模式生成有一个问题。我在application.properties文件中设置了以下属性: spring.jpa.properties.javax.persistence.schema-generation.scripts.action=create spring.jpa.properties.javax.persistence.schema-generation.scripts.create-target=create.sql spring.jpa.properties.

我对SpringJPA模式生成有一个问题。我在application.properties文件中设置了以下属性:

spring.jpa.properties.javax.persistence.schema-generation.scripts.action=create
spring.jpa.properties.javax.persistence.schema-generation.scripts.create-target=create.sql
spring.jpa.properties.javax.persistence.schema-generation.scripts.create-source=metadata
然后,每次运行项目或以maven build的形式构建项目时,它都会将所有create语句附加到create.sql文件中。我试图将create.sql放在目标路径中,然后每次它删除它,然后创建一个新路径,但我得到一个错误,它无法读取create.sql。知道如何停止每次在文件末尾追加create语句吗