SpringBoot中的控制層的程序中的方法有返回值的原因

下面是刪除操作的正確的和錯誤的代碼:   //刪除錯誤的代碼 @RequestMapping("/deleteCategory") public void deleteCategory(Category category) throws Exception{ categoryDao.delete(category); } 會出現異常,沒有返回到指定的頁面。   //刪除 @RequestMapp
相關文章
相關標籤/搜索