开发者

Spring boot application not able to find sequence in AWS Postgresql

开发者 https://www.devze.com 2022-12-07 20:26 出处:网络
In existing spring boot application I have created new entity and for the primary key for this entity I have use annotation @GeneratedValue.

In existing spring boot application I have created new entity and for the primary key for this entity I have use annotation @GeneratedValue. Based on entity and annotation I have created required table and sequence in the Postgresql database.(Note, Spring boot and database are existing) However, while starting spring boot application I am getting error "Unable to build Hibernate开发者_Python百科 SessionFactory Schema-validation: missing sequence", and sequence are created in database under the required schema.

Spring boot application to identify the sequence created in Postgresql and start the application.


In Postgresql grant required privilege to table/sequence created. So that spring boot application can performed actions like read/write in table/sequence.

0

精彩评论

暂无评论...
验证码 换一张
取 消