H2 not creating/updating table in my Spring Boot app. Something's wrong with my Entity?

前端 未结 5 1962
遇见更好的自我
遇见更好的自我 2021-02-04 10:47

I want to keep some data in H2 database by making a CRUD repository, using Hibernate.

I can\'t get the database to store my entries whatsoever. Currently, I\'m trying to

5条回答
  •  暖寄归人
    2021-02-04 11:26

    Putting this line: spring.jpa.hibernate.ddl-auto = update in your application.properties file start population data in in-memory database and in file based database for H2 data-base.Hope this helps anyone.

提交回复
热议问题