jpa save 报错,提示 xx.hibernate_sequence' doesn't exist

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wuzhong8809/article/details/83107223

Solution 1:

Put the string below in .application.properties

spring.jpa.properties.hibernate.id.new_generator_mappings=false

Solution 2:

You can  put the string below above your primary key:

@GeneratedValue(strategy = GenerationType.IDENTITY)

详见:https://stackoverflow.com/questions/32968527/hibernate-sequence-doesnt-exist

猜你喜欢

转载自blog.csdn.net/wuzhong8809/article/details/83107223
今日推荐