java - Spring JPA 属性不生成数据库
问题描述
大家晚安,我正在尝试生成 create.sql 文件,以便我可以使用 create.sql 文件将从查询生成的命令轻松地在 postresSQL 中创建我的数据库,但 create.sql 文件不是使用代码自己生成的下面有人可以帮我解决这个问题吗?
spring.jpa.properties.javax.persistence.schema-generation.create-source=metadata
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.hibernate.hbm2ddl.delimiter=;
spring.datasource.url=jdbc:postgresql://localhost:5432/dsdeliver
spring.datasource.username=postgres
spring.datasource.password=abrantes1
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
spring.jpa.hibernate.ddl-auto=none
解决方案
推荐阅读
- django - 如何在 Django 管理员 ListView 中将 True 值更改为绿色检查
- java - 显示对话框后 EditText 自动滚动不起作用
- r - 如何根据前行的迭代选择行,直到满足条件?
- c# - 如何检查对象列表与列表列表是否不同?
- javascript - Discord.js:如何发送消息并从中收集反应
- javascript - 如何解决 Netlify 函数中的空表单数据
- java - Android TV 片段(主片段)以垂直方向出现?
- tsql - 跨多个代码块重用 WITH 表定义
- javascript - JavaScript:调用类对象的函数将值添加到对象数组中
- python - 从Python中的字符串中提取特定的货币金额