本文主要是介绍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的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!