spring测试类 MockHttpServletRequestBuilder中content和param的区别

结论:

Mock将URL的参数和通过使用param添加的参数添加到request中的parameter中(url参数)

而将content内容、类型并没有进行解析,直接添加到request的content中(body)

 

posted @ 2018-02-24 11:03  lgp20151222  阅读(1649)  评论(0编辑  收藏  举报