[DEBUG] 2017-09-26 12:11:04,337 dao.UserMapper.insertUser - ==> Preparing: insert into User(u_name,u_pwd,U_nickname,u_cardId,u_phone,u_email,u_uper,u_createDate,u_status,U_type) values( ?,?,?,?,?,?,?,?,?,? )
[DEBUG] 2017-09-26 12:11:04,337 dao.UserMapper.insertUser - ==> Parameters: huang12121(String), 123456(String), huang(String), null, null, 12345@qq.com(String), 0(Integer), 2017-09-26 12:11:04.335(Timestamp), 1(Integer), null
[DEBUG] 2017-09-26 12:11:04,399 org.springframework.web.servlet.DispatcherServlet - Successfully completed request
提交注册时没发生任何错误并成功跳转到登录页面,使用刚注册的账号登录报下面的错误
严重: Servlet.service() for servlet spring threw exception
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'u_NICKNAME' cannot be null
首先这列明明是填了数据并成功提交的,而且为什么不是在提交的时候报错呢,打开数据库一看虽然提交成功了,但是数据库数据没有更新。之前用的是mysql5.096版本,都正常的,换成5.56了,这个错误我理解不了,求大神帮忙指点!
HansonQ
相关分类