HTTPステータス404 Spring Rest要求されたリソースは利用できません
-
21-12-2019 - |
質問
Spring 3.2.2を使用しています。
への要求の送信に関する問題があります。http://asdsda:8080/spr-mvc-hib/user/userHizmet.html?userId=19
.
HTTPステータス404要求されたリソースは利用できません。
@RequestMapping(value = "/userHizmet/{userId}", method = RequestMethod.GET)
public ModelAndView userHizmet(@PathVariable String userId)
{
ModelAndView mav = new ModelAndView("userte");
.
ここで私は呼び出した:
success: function (data) {
alert(data);
window.location.href="${pageContext. request. contextPath}/user/userHizmet.html?userId="+data;
},
.
ディスパッチャ:
Dynamic servlet = servletContext.addServlet("dispatcher", new DispatcherServlet(ctx));
servlet.addMapping("/");
. 解決
localhost:8080/spr-mvc-hib/user/userHizmet.html?userId=19
.
.html
の削除とrequestparam
の使用マイ問題を解決しました
所属していません StackOverflow