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 expec

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类型,
类型不匹配报错:

猜你喜欢

转载自www.cnblogs.com/qingmuchuanqi48/p/11616154.html