开发者

Spring boot application not able to find sequence in AWS Postgresql

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜