rn-redux 代码运行,注册报错500

来源:2-6 ES6,ES7,ES8学习指南-2

慕莱坞3690244

2022-04-22

rn-redux 代码运行,注册报错:

{"timestamp":"2022-04-22T01:33:29.234+0000","status":500,"error":"Internal Server Error",
"message":"\n### Error updating database.  Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation:
 Data truncation: Out of range value for column 'order_id' at row 1\n### The error may exist in file [/root/app/apache-tomcat-9.0.27/webapps/uapi/WEB-INF/classes/mybatis/UserMapper.xml]\n### The error may involve defaultParameterMap\n### The error occurred while setting parameters\n### SQL: INSERT INTO t_user ( user_name, pwd, imooc_id, order_id, create_time, course)             VALUES                 ( ?, ?, ?, ?, ?, ? )                 ON DUPLICATE KEY UPDATE                 pwd=VALUES(pwd)              ,user_name=VALUES(user_name)              ,order_id=VALUES(order_id)\n### Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Out of range value for column 'order_id' at row 1\n; Data truncation: Out of range value for column 'order_id' at row 1; nested exception is com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Out of range value for column 'order_id' at row 1","path":"/uapi/user/registration/"}
请问是否有前置条件,我没有做?
写回答

2回答

CrazyCodeBoy

2022-04-24

注册你传了那些参数截图发我帮你分析下

0
0

CrazyCodeBoy

2022-04-22

应该是代码传参的问题,你对照一下这块的课程源码检查下你的代码实现看是有出入的地方。

0
1
慕莱坞3690244
我运行的老师的代码,慕课git仓库下载的
2022-04-22
共1条回复

RN入门到进阶,打造高质量上线App

解锁React Native开发应用新姿势,React Native新版本热门技术

3144 学习 · 3241 问题

查看课程