org.apache.ibatis.exceptions.PersistenceException:
### Error updating database. Cause: java.sql.SQLException: Field 'id' doesn't have a default value
### The error may involve com.fanlan.Dao.blogDao.add1-Inline
### The error occurred while setting parameters
### SQL: insert into blog (title,author,create_time,views) values (?,?,?,?)
### Cause: java.sql.SQLException: Field 'id' doesn't have a default value
データベースの更新中にエラーが発生しました。理由:java.sql.SQLException:フィールド "id"にデフォルト値がありません
解決:
ALTER TABLE 表名 MODIFY 字段名 INT AUTO_INCREMENT;