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