Neither BindingResult nor plain target object for bean name 'entity' available as request attribute

錯誤截圖: 原因:後臺返回了一個爲null的對象  eg:entity = null,  導致頁面用entity.getName時報  null.getSomething 錯誤 解決:後臺返回的每一個對象都不能爲null, 沒有數據返回就用new   Student();  返回到頁面這樣就不會出現如題錯誤 Student student = null  ---------------------
相關文章
相關標籤/搜索