HTTP 상태 404 스프링 휴식 요청 된 자원을 사용할 수 없습니다.
-
21-12-2019 - |
문제
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
를 사용하여 내 문제를 해결했습니다
제휴하지 않습니다 StackOverflow