可能同学们经常会碰到下面错误
### Error updating database. Cause: java.sql.SQLException: Column count doesn't match value count at row 1
### The error may exist in com/itheima/mapper/EmpMapper.java (best guess)
### The error may involve com.itheima.mapper.EmpMapper.insert-Inline
### The error occurred while setting parameters
### SQL: insert into emp(username, password, name, gender, image, job, entrydate, dept_id, create_time, update_time) values(?,?,?,?,?,?,?,?,?)
### Cause: java.sql.SQLException: Column count doesn't match value count at row 1
这是由于占位符与实际参数不匹配造成的,也就是粗心大意,参数与?个数不匹配
修改成功即可运行成功
之前少了一个报错,加上以后成功了