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