我有類似下面的AA請求映射:Spring MVC的RequestParam可選值
@RequestMapping(value = "/init/filter/", method = RequestMethod.POST)
@ResponseBody
public final Reponse filterGrid(
@RequestParam(value = "nom", required = false) final String nom,
@RequestParam(value = "matricule", required = false) final String matricule,
final HttpServletRequest httpRequete,
final HttpServletResponse httpReponse, Model model) {
}
而且在我的javascript,我這個網址:
POST http://localhost:8080/project/pages/rest/consultation/bulletinhorscontrat/init/filter/nom=test 404 (Introuvable)
我得到了一個未找到頁面
我試過用GET和我得到了相同的錯誤
我在Spring MVC方法中忘了什麼?
感謝的
您能否提供帶有錯誤描述的任何日誌? –
在我的日誌文件中我沒有錯誤,我在瀏覽器中只有這個: Erreur網頁編號:404 Navigateur:Mozilla 地址:../../pages/rest/consultation/bulletinhorscontrat/init/filter/nom = COTREZ 描述: 行政法院HTTP 404 - 型融洽D''政變 消息 描述的La的ressourcedemandéen''est PAS disponible。 的Apache Tomcat/7.0.59 – Pasja95
要檢查錯誤的詳細信息,設置日誌春級別進行調試 –