亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

org.springframework.boot 2.1.8.RELEASE Redshift

org.springframework.boot 2.1.8.RELEASE Redshift

HUX布斯 2023-09-27 15:14:56
我遇到的第一個錯誤無效操作:不支持 SQL 命令“如果存在 hibernate_sequence,則刪除序列”在例外情況的更下方,我看到以下內容。我假設我必須更改 hibernate_sequence 中索引遞增的方式。Caused by: com.amazon.support.exceptions.ErrorException: [Amazon](500310) Invalid operation: SQL command "create sequence hibernate_sequence start 1 increment 1" not supported.;    ... 49 common frames omitted2019-10-07 14:02:30,237 WARN  [main] org.hibernate.tool.schema.internal.ExceptionHandlerLoggedImpl: GenerationTarget encountered exception accepting command : Error executing DDL "create sequence hibernate_sequence start 1 increment 1" via JDBC Statementorg.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL "create sequence hibernate_sequence start 1 increment 1" via JDBC Statement在構建 java Spring Boot 應用程序時,尋求連接并創建新的 redshift DB Cluster V1.0.10393。POM 和屬性文件應該是什么樣子?我正在從工作 PostgreSQL 數據庫過渡到 redshift。當前屬性spring.datasource.driver-class-name=com.amazon.redshift.jdbc42.Driverspring.datasource.url=jdbc:redshift://redshift-cluster-1.cwirererbv4xb.us-east-2.redshift.amazonaws.com:5439/dbspring.datasource.username=awsuserspring.datasource.password=werwerwerewspring.jpa.hibernate.ddl-auto=createspring.jpa.show-sql=truespring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults=falsespring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQL9Dialectspring.datasource.hikari.connectionTimeout=20000spring.datasource.hikari.maximumPoolSize=5spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=truespring.jpa.open-in-view=falsespring.jpa.hibernate.ddl-auto=create
查看完整描述

2 回答

?
侃侃爾雅

TA貢獻1801條經驗 獲得超16個贊

我遇到的錯誤是因為我使用了生成的 ID


@Id

@GeneratedValue(strategy = GenerationType.AUTO)

@javax.persistence.Id

private long id;

我已將其替換為@EmbeddedId。命名索引也被刪除。


查看完整回答
反對 回復 2023-09-27
?
嗶嗶one

TA貢獻1854條經驗 獲得超8個贊

就我而言,因為我輸入了錯誤的驅動程序類名稱,所以我輸入了 PostGresSQL 而不是 mySQL。



查看完整回答
反對 回復 2023-09-27
  • 2 回答
  • 0 關注
  • 125 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號