当前位置:网站首页>解决错误: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中编写的代码,发现是我的数据注入没有注入进去!

每个都要注入,大家别忘了!
又是学渣学习的一天。。。
边栏推荐
猜你喜欢
随机推荐
[论文总结] 深度学习在农业领域应用论文笔记10
【斯坦福计网CS144项目】Lab5: NetworkInterface
2022暑假牛客多校1 (A/G/D/I)
我们来浅谈代码语言的魅力
Technology Sharing | How to do assertion verification for xml format in interface automation testing?
C语言函数详解(2)【函数参数——实际参数(实参)&形式参数(形参)】
threejs 动态调整相机位置,使相机正好能看到对象
msys2下载地址
No-code development platform form styling steps introductory course
HCIP(16)
MySql查询某个时间段内的数据(前一周、前三个月、前一年等)
vant-swipe adaptive picture height + picture preview
threejs dynamically adjust the camera position so that the camera can see the object exactly
非关系型数据库MongoDB简介和部署
微信小程序实现lot开发09 接入微信登录
Week 7 CNN Architectures - LeNet-5、AlexNet、VGGNet、GoogLeNet、ResNet
Rebound shell principle and implementation
APT level comprehensive free kill with Shell
Pytest配置项-pytest.ini
用了TCP协议,就一定不会丢包吗?









