转载于https://blog.csdn.net/Halleycomett/article/details/78638639
错误信息
[] [http-nio-8022-exec-10] ERROR o.h.e.jdbc.spi.SqlExceptionHelper - Table 'fuwu_base.base_demo' doesn't exist
08:49:57.835 []
解决方法
添加 spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://xx.xx.x.xx:3306/xx?useUnicode=true&characterEncoding=UTF8&useSSL=false
username: root
password: root
jpa:
database-platform: org.hibernate.dialect.MySQL5Dialect
database: mysql
show-sql: true
format-sql: true
hibernate:
naming:
physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl