RequestContextHolder.getRequestAttributes() 獲取對象為空,廖師兄是什么原因呢?
ServletRequestAttributes requestAttribute = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
ServletRequestAttributes requestAttribute = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
2018-06-14
舉報
2018-09-25
你看看你查詢的id,在數據庫里是不是有數據的,沒有數據就顯示對象為空了
2018-08-30
怎么解決啊? 我也是
2018-08-08
同樣報空指針,我的版本是springboot2.0的
2018-07-19
怎么解決的?
2018-06-17
打開瀏覽器開發者工具(F12),查看一下network是否有發送http請求,然后可以在項目中打個斷點調試一下,分析一下是什么原因