liquibase和spring boot集成测试h2db表""找不到

时间:2018-02-22 02:28:49

标签: spring spring-boot integration-testing liquibase h2db

Integration Test Config

Liquibase Config

H2 Config

Liquibase在日志中运行并创建表格,但是当测试执行时,无法找到表格。

引起:org.h2.jdbc.JdbcSQLException:表" EXAM"未找到; SQL语句: 选择exam0_.id_exam作为id_exam1_11_,exam0_.code作为code2_11_,exam0_.created_at作为created_3_11_,exam0_.name作为name4_11_,exam0_.synonym作为同义词__11_,exam0_.type作为type6_11_,exam0_.updated_at作为updated_7_11_来自考试exam0_其中exam0_.id_exam not in(在examrestri1_.id_exam = exam2_.id_exam,参见exam_restriction examrestri1_ inner join exam exam2_中选择exam2_.id_exam,其中examrestri1_.id_laboratory =?)[42102-194]

0 个答案:

没有答案