注册服务器报错呀

来源:2-12 创建支持TS项目,对比和仅支持JS语言的RN项目

慕无忌3182322

2022-10-30

—buildParams----: https://api.devio.org/uapi/user/registration/
LOG {“timestamp”:“2022-10-30T08:24:02.508+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/"}

写回答

1回答

CrazyCodeBoy

2022-10-31

订单ID取后四位来注册
0
0

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

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

3144 学习 · 3241 问题

查看课程