易山川 2017-11-09 14:20 采纳率: 0%
浏览 1858

MockMvc post请求异常

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条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 电脑桌面设定一个区域禁止鼠标操作
    • ¥15 求NPF226060磁芯的详细资料
    • ¥15 使用R语言marginaleffects包进行边际效应图绘制
    • ¥20 usb设备兼容性问题
    • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊
    • ¥15 安装svn网络有问题怎么办
    • ¥15 Python爬取指定微博话题下的内容,保存为txt
    • ¥15 vue2登录调用后端接口如何实现
    • ¥65 永磁型步进电机PID算法
    • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?