美文网首页
springboot开发接口报错Optional int par

springboot开发接口报错Optional int par

作者: 大胡子的机器人 | 来源:发表于2018-12-20 10:39 被阅读0次

springboot开发接口报错
Optional int parameter 'userId' 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

image.png

原来是这样的:


image.png

解决方案:


image.png

相关文章

网友评论

      本文标题:springboot开发接口报错Optional int par

      本文链接:https://www.haomeiwen.com/subject/cgnekqtx.html