Caused by: org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation: wrong column type encountered in column [others] in table [auth_user]; found [varchar (Types#VARCHAR)], but expecting [integer (Types#INTEGER)]

这个错误是由于使用springdatajpa 将ddl-auto配置为validate

假如说:

当表中字段others是varchar类型, 实体类entity的others是Integer类型,
类型不匹配报错:

相关文章:

  • 2021-11-14
  • 2022-12-23
  • 2021-10-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-18
  • 2021-10-18
  • 2021-06-28
  • 2021-10-03
相关资源
相似解决方案