问答详情
源自:3-11 用户模型管理--用户注册功能实现02

注册不成功

注册失败!原因为{"timestamp":"2020-03-08T03:35:03.804+0000","status":500,"error":"Internal Server Error","message":"\r\n### Error updating database.  Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1\r\n### The error may involve com.miaoshaproject.dao.UserDOMapper.insertSelective-Inline\r\n### The error occurred while setting parameters\r\n### SQL: insert into user_info\r\n### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1\n; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1","path":"/user/register"}

说是数据库表名与关键字重合?没找到重合的地方,求解答


提问者:qq_零下_5 2020-03-08 11:38

个回答

  • 精慕门4012826
    2021-04-26 09:37:01

    哪个地方错了


  • qq_零下_5
    2020-03-10 12:03:30

    问题解决,代码敲错了,

  • 慕尼黑158232
    2020-03-08 21:21:30

    删除之前已经生成好的mapper.xml文件,重新生成一次