【问题标题】:In Spring Boot application I am getting this as error, Any help will be appriciated在 Spring Boot 应用程序中,我将其视为错误,将不胜感激
【发布时间】:2023-03-29 06:18:01
【问题描述】:

我在运行休眠应用程序时收到此错误。任何帮助将不胜感激。谢谢

【问题讨论】:

标签: spring spring-boot hibernate


【解决方案1】:

错误消息明确指出您的数据库中缺少country 表。此问题可能有多种原因。但您可以使用以下任一解决方案来解决此问题:

  1. 在开始您的应用程序之前手动创建国家/地区表或
  2. spring.jpa.hibernate.ddl-auto = update 属性添加到您的application.properties 文件中,以告诉spring boot 自动创建表。

参考spring docs

【讨论】:

    猜你喜欢
    • 2021-10-21
    • 1970-01-01
    • 2018-02-07
    • 2017-05-10
    • 2021-08-05
    • 2022-08-18
    • 2021-11-27
    • 1970-01-01
    相关资源
    最近更新 更多