質問

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の使用マイ問題を解決しました

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top