How to re-create database before each test in Spring?

后端 未结 9 2191
盖世英雄少女心
盖世英雄少女心 2020-12-07 16:30

My Spring-Boot-Mvc-Web application has the following database configuration in application.properties file:

spring.datasource.url=jdbc:h2:tcp://         


        
9条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-07 16:49

    If you use spring.jpa.hibernate.ddl-auto=create-drop should be enough to create/drop database?

提交回复
热议问题