当前位置:网站首页>解决错误:Optional int parameter ‘pageSize‘ is present but cannot be translated into a null value due to
解决错误:Optional int parameter ‘pageSize‘ is present but cannot be translated into a null value due to
2022-08-02 22:57:00 【young_man2】
今天在学习springboot的时候,遇到了上面的问题,最开始一致找不到错误,然后查询资料,给的方法是:
将你的spring mvc中的int 修改为Integer就可以了,因为int不能装载null值。大家可以试一试
然后改完之后,我发现我的又出现了新的空指针异常的错误,然后就回去看我的spring mvc中编写的代码,发现是我的数据注入没有注入进去!
每个都要注入,大家别忘了!
又是学渣学习的一天。。。
边栏推荐
猜你喜欢
The CTF command execution subject their thinking
The latest real software test interview questions are shared. Are you afraid that you will not be able to enter the big factory after collecting them?
脂溶性胆固醇-聚乙二醇-叠氮,Cholesterol-PEG-Azide,CLS-PEG-N3
用了TCP协议,就一定不会丢包吗?
redis的学习笔记
Mock工具之Moco使用教程
精心整理16条MySQL使用规范,减少80%问题,推荐分享给团队
6、Powershell命令配置Citrix PVS云桌面桌面注销不关机
Pytest配置项-pytest.ini
HCIP(16)
随机推荐
思源笔记 本地存储无使用第三方同步盘,突然打不开文件。
Connect the Snowflake of CKAN tutorial CKAN to release to open data portal
Rebound shell principle and implementation
VMware workstation 程序启动慢
2022山东国际青少年眼睛健康产业展会,视力健康展,眼视光展
MySQL 与InnoDB 下的锁做朋友 (四)行锁/记录锁
Controller层代码这么写,简洁又优雅!
精心整理16条MySQL使用规范,减少80%问题,推荐分享给团队
十三、数据回显
Day117.尚医通:生成挂号订单模块
基于飞腾平台的嵌入式解决方案案例集 1.0 正式发布!
Let's talk about the charm of code language
d实验新异常
【C语言】带头双向循环链表(list)详解(定义、增、删、查、改)
CAS:1445723-73-8,DSPE-PEG-NHS,磷脂-聚乙二醇-活性酯两亲性脂质PEG共轭物
js基础知识整理之 —— Date和定时器
令人心动的AI综述(1)
Strict feedback nonlinear systems based on event trigger preset since the immunity of finite time tracking control
APT级全面免杀拿Shell
DownMusic总结记录