Optional int parameter ‘limit‘ is present but cannot be translated into a null value due to錯誤解決方法

學習SpringBoot時遇到了一個這樣的錯誤,一開始以爲自己的代碼有問題,百度了下發現時傳參的時候有問題,我傳的參是int類型的,改成integer對象類型就行了         [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is j
相關文章
相關標籤/搜索