बदलें spring.jpa.properties.hibernate.ddl-auto=create करने के लिए spring.jpa.hibernate.ddl-auto=create application.properties . में फ़ाइल और बदलें GeneratedValue Example . में एनोटेशन नीचे के रूप में इकाई:
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
FYI करें:आप लिक्विबेस या फ्लाईवे लाइब्रेरी का भी उपयोग कर सकते हैं।