java.lang.RuntimeException: org.springframework.dao.DataIntegrityViolationException:
### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'title' cannot be null
### The error may involve com.taotao.mapper.TbItemMapper.insert-Inline
### The error occurred while setting parameters
### SQL: insert into tb_item (id, title, sell_point, price, num, barcode, image, cid, status, created, updated) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'title' cannot be null
; SQL []; Column 'title' cannot be null; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'title' cannot be null
是由于索引库本身的数据多于mySQL,所以需要先删除多余的数据 ,然后再从数据库导入索引库