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類型,
類型不匹配報錯: