u014377853
易山川
2017-11-09 14:20

MockMvc post请求异常

  • spring

MockHttpServletRequest:
HTTP Method = POST
Request URI = /commodity
Parameters = {}
Headers = {Content-Type=[*/*], Accept=[*/*]}

Handler:
Type = null

Async:
Async started = false
Async result = null

Resolved Exception:
Type = org.springframework.web.HttpRequestMethodNotSupportedException

ModelAndView:
View name = null
View = null
Model = null

FlashMap:
Attributes = null

MockHttpServletResponse:
Status = 405
Error message = Request method 'POST' not supported
Headers = {Allow=[DELETE, GET]}
Content type = null
Body =
Forwarded URL = null
Redirected URL = null
Cookies = []

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

0条回答

为你推荐

换一换