There was an unexpected error (type=Internal Server Error, status=500). ### Error updating database.

There was an unexpected error (type=Internal Server Error, status=500). ### Error updating database. Cause: java.sql.SQLException: No value specified for parameter 5 ### The error may exist in com/shiyaxin/mapper/EmployeeMapper.java (best guess) ### The error may involve com.shiyaxin.mapper.EmployeeMapper.updateEmp-Inline ### The error occurred while setting parameters ### SQL: update employee SET lastName=?,email=?,gender=?,d_id=? where id=? ### Cause: java.sql.SQLException: No value specified for parameter 5 ; bad SQL grammar []; nested exception is java.sql.SQLException: No value specified for parameter 5

错误原因:No value specified for parameter 5:数据库指定的值5出了问题,语句错误,自己多检查检查

你可能感兴趣的:(SpringBoot干货)