报错原因调查 mysql里实际表名都是大写

尝试在entity上标记表名大写,实际测试无效,仍然找不到表

@Entity
@Data
@Table(name = "T_BASE_ORDER_PRINT_CLIENT")

最终解决方案

在spring jpa配置中增加physical-strategy配置解决问题

spring:
  jpa:
    hibernate:
      ddl-auto: none
      naming:
        physical-strategy:  org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
    show-sql: true

参考链接:https://blog.csdn.net/Halleycomett/article/details/78638639