我正在使用Spring Boot在我的Java应用程序中嵌入H2。目前,它会在数据库中创建(覆盖)我的表格。但是一旦我将其推向生产环境,我不希望我的表格被清除和重新创建,这样我就不会失去先前表格中的数据。但是我不确定如何实现这一点。不确定在
spring.jpa.hibernate.ddl-auto=create
行上放置什么。我尝试了验证和其他选项,但没有成功。这是我的application.properties文件。谢谢spring.jpa.generate-ddl=true
spring.jpa.hibernate.ddl-auto=create
spring.jpa.properties.hibernate.show_sql=true
spring.jpa.properties.hibernate.use_sql_comments=true
spring.jpa.properties.hibernate.format_sql=true
spring.datasource.initialization-mode=always
spring.jpa.hibernate.naming.physical-
strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl