注册不成功

来源:3-11 用户模型管理--用户注册功能实现02

qq_零下_5

2020-03-08 11:38

注册失败!原因为{"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"}

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


写回答 关注

3回答

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

    哪个地方错了


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

    问题解决,代码敲错了,

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

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

    qq_零下_...

    还是不行,一样的错

    2020-03-09 11:19:14

    共 1 条回复 >

SpringBoot构建电商基础秒杀项目

应用SpringBoot快速搭建拥有用户、商品、交易及秒杀活动的电商秒杀应用。

49020 学习 · 954 问题

查看课程

相似问题