[Solved] The length of the data truncation done by springboothinesdata for the column.

Questions

According to the error report, the field defined in the database is too short to store new data

Solution

  @Column(length = 3000)
  private String cellExcel;

Manually define the length of the field, but it will not take effect on the existing table, so you still need to use SQL statements to manually modify the length of the table field, that is:

ALTER TABLE mydb.form_template_field MODIFY COLUMN cell_excel VARCHAR(3000);

 

Similar Posts: