学习SpringBoot时遇到了一个这样的错误,一开始以为自己的代码有问题,百度了下发现时传参的时候有问题,我传的参是int类型的,改成integer对象类型就行了
        [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.IllegalStateException: Optional int parameter 'limit' 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.] with root cause
Optional int parameter ‘limit‘ is present but cannot be translated into a null value due to错误解决方法改好的是这样的:
Optional int parameter ‘limit‘ is present but cannot be translated into a null value due to错误解决方法
仅作自己记录使用

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-19
  • 2022-12-23
  • 2022-12-23
  • 2021-07-25
  • 2021-07-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案