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

posted @ 2019-10-01 20:58  King-DA  阅读(2086)  评论(0编辑  收藏  举报