Optional int parameter ‘xxx‘ is present but cannot be translated into a null value due to being decl
错误描述:
processing failed; nested exception is java.lang.IllegalStateException: Optional int parameter ‘currPage’ is present but cannot be translated into a null value due to being declared as a primitive type. Consider declaring it as object wrapper for the corresponding primitive type.
java.lang.IllegalStateException: Optional int parameter ‘currPage’ is present but cannot be translated into a null value due to being declared as a primitive type. Consider declaring it as object wrapper for the corresponding primitive type.
错误原因:
前后端字段名不一致前端为currpage,后端为currPage
修改后
总结:
一般Optional int parameter ‘xxx’ is present but cannot be translated into a null value due to being declared as a primitive type. 种错误的原因为前后端字段名不一致
Optional int parameter ‘xxx‘ is present but cannot be translated into a null value due to being decl相关推荐
- Optional int parameter ‘xxx‘ is present but cannot be translated into a null value due to being.....
异常代码 `j`ava.lang.IllegalStateException: Optional int parameter 'tyId' is present but cannot be trans ...
- Optional int parameter ‘xxx‘ is present but cannot be translated into a null value due to being
Optional int parameter 'domainId' is present but cannot be translated into a null value due to being ...
- Optional int parameter 'page' is present but cannot be translated into a null value due to being dec
这个错误犯两回了 int改integer 原始类型不能为null 包装类可以 我的spring mvc 代码: @Controller @RequestMapping("/product&q ...
- Optional int parameter 'id' is present but cannot be translated into a null value due to being
执行## ........(int id);报出以下错误. Optional int parameter 'id' is present but cannot be translated into a ...
- Optional int parameter ‘page‘ is present but cannot be translated into a null value due to being dec
背景:在测试上面这个controller时(status为查询条件Limit,查询status为1/0的所有记录),当用postman发出请求http://localhost:8080/orders/ ...
- Optional int parameter ‘grade‘ is present but cannot be translated into a null value due to being de
完整的错误提示信息: 复制出来看的清楚些: Optional int parameter 'grade' is present but cannot be translated into a null ...
- Optional int parameter ‘categoryId‘ is present but cannot be translated into a null value due to be
Optional int parameter 'categoryId' is present but cannot be translated into a null value due to bei ...
- Optional int parameter ‘XXX‘ is present but cannot be translated into a null value问题
报这个错的原因是你定义的数据类型是INT型,但是没有给它传上值,它成了NULL,所以会报错,因为INT型没有NULL,只有0,这个时候要检查你传入的对应数据是不是准确. 接口的错误,看下前端传来的值是 ...
- Optional int parameter ‘XXX‘ is present but cannot be translated into a null value
报这个错的原因是你定义的数据类型是INT型,但是没有给它传上值,它成了NULL,所以会报错,因为INT型没有NULL,只有0,这个时候要检查你传入的对应数据是不是准确. 或者是前端FormData传的 ...
最新文章
- 安装ATi显卡驱动后增加的鼠标右键菜单的清理
- python3 pyquery模块 解析html网页
- 打算尝试瑜伽,看是否能解决长期困扰的胃痛问题
- 天津理工大学c语言上机报告3,天津理工大学-c语言上机报告4.pdf
- BZOJ 3112 Zjoi2013 防守战线 单纯形
- JDK 9、10和11中的安全性增强
- 大话业务流程图(二)—如何绘制业务流程图?
- torch.Tensor和torch.tensor有什么区别?
- Tcl/tk缩放Truetype字体时的精度问题
- Android 登陆界面Edittext
- 微信小程序砍价功能php,微信小程序分享转发实现砍价功能
- 计算机专业毕业顶岗实习周记,计算机专业毕业顶岗实习周记10篇
- (附源码)php积极心理学交流网站 毕业设计 100623
- Git 推送命令报错
- php 验证邮箱 php验证手机号码 ph验证身份证
- gromcas 分析NAMD轨迹文件dcd
- java做五子棋 视频_java swing实现五子棋小游戏项目源码附带视频指导运行教程...
- 重装系统后发现只有系统盘c盘怎么办?
- c++ 汉语转换成拼音
- Mars3D(含Cesium)数据及服务篇:单体小模型转为glTF格式
热门文章
- java数组与list相互转换
- 代码随想录算法训练营第三十天| LeetCode332. 重新安排行程、LeetCode51. N 皇后、LeetCode37. 解数独
- 《企业管理学》——决策与决策方法知识点总结
- ubuntu20.04双系统安装及ROS安装
- c语言辅音字符怎么表示,英语26个字母口诀
- 1h-8学习(1):1h-8适配之int8直接量化+转.cambricon格式
- 南通大学计算机考研资料汇总
- 类型 / 保留小数 / 结构语句
- 使用turtle库绘制分形树、太阳花、五角星
- Windows下MPI启动