Spring’s embedded H2 datasource and DB_CLOSE_ON_EXIT

后端 未结 3 520
悲哀的现实
悲哀的现实 2020-12-24 05:37

For unit tests (call them integration tests if you want) I have configured an embedded database in my Spring config like so:



        
3条回答
  •  我在风中等你
    2020-12-24 06:25

    I had the same problem, but it was because I forgot to add the annotation @Entity on one of my entities. I add it and it work now ! I hope this helps someone.

提交回复
热议问题