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
注册你传了那些参数截图发我帮你分析下
00 -
CrazyCodeBoy
2022-04-22
应该是代码传参的问题,你对照一下这块的课程源码检查下你的代码实现看是有出入的地方。
012022-04-22
相似问题
项目运行报错
回答 1
关于RN与flutter
回答 1