Springboot +SpringBatch 批处理 javaBean与mysql字段类型mediumtext 异常解决办法

报错

Caused by: org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation: wrong column type encountered in column [decode_data] in table [article2005_decode]; found [mediumtext (Types#LONGVARCHAR)], but expecting [varchar(255) (Types#VARCHAR)]

实体类修改为

    @Column(name = "decode_data",columnDefinition = "mediumtext")
    private String decode_data;

 

你可能感兴趣的:(Springboot +SpringBatch 批处理 javaBean与mysql字段类型mediumtext 异常解决办法)