문제

Spring 3.2.2.Release를 사용하고 서버에 요청을 보내는 데 문제가 있습니다.

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