Cannot invoke “Object.toString()” because the return value of “java.util.Map.get(Object)” is null
在寫瑞吉外賣的時候遇到 Object.toString()為空的問題,最后發(fā)現(xiàn)是
前端沒有往后端傳遞數(shù)據(jù),第一個圖片是只傳的phone最后改為from第二個是沒有寫函數(shù)sendMsgApi,改正后,發(fā)現(xiàn)登錄進去又回退到主頁面,發(fā)現(xiàn)是因為在過濾器中要保存session,保存后才能發(fā)送,再次添加形參HttpServletRequest request,文章來源:http://www.zghlxwxcb.cn/news/detail-782732.html
request.getSession().setAttribute("user",user.getId());
最后成功文章來源地址http://www.zghlxwxcb.cn/news/detail-782732.html
到了這里,關(guān)于Cannot invoke “Object.toString()“ because the return value of “java.util.Map.get(Object)“ is null的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!