我有一个Java/Spring应用程序在标准环境上运行.每次我将其部署到App Engine时,我正在使用的postgres数据库都会被重置.如何防止这种情况发生?
我的应用程序.属性:
spring.datasource.url=jdbc:postgresql:///***
spring.jpa.properties.hibernate.id.new_generator_mappings=false
spring.jpa.properties.hibernate.format_sql=true
spring.jpa.hibernate.ddl-auto=create
logging.level.org.hibernate.SQL=DEBUG
logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE
我的app.yaml:
runtime: java17
instance_class: F1
automatic_scaling:
max_idle_instances: 1