我得到了一个简单的Spring Boot应用程序,JPA和Hibernate作为提供者 . 我想测试我的应用程序对抗来自H2的postgres,每次我第一次在空架构上启动应用程序时我都会遇到类似的错误

Caused by: org.postgresql.util.PSQLException: ERROR: relation "<table-name>" does not exist

但所有表都已创建,应用程序正常工作 . 在下一次启动现有架构上的应用程序时 . 一切似乎都很好 . 我试过了

<prop key="hibernate.hbm2ddl.auto">create</prop>
and
<prop key="hibernate.hbm2ddl.auto">create-drop</prop>

并没有不同的结果 . 有没有人知道我怎么能得到一个干净的启动 .