Spring reading request body twice

后端 未结 3 397
花落未央
花落未央 2021-01-05 22:25

In spring I have a controller with an endpoint like so:

@RequestMapping(method = RequestMethod.POST)
@ResponseStatus(HttpStatus.CREATED)
@ResponseBody
publ         


        
3条回答
  •  醉梦人生
    2021-01-05 23:01

    I also tried to do that in Spring but i could not find way to pass my custom http request to chain so what did was,i have written traditional j2ee filter in that i have passed my custom http request to chain that is it then onward i can read http request more than once

    Check this example http://www.myjavarecipes.com/how-to-read-post-request-data-twice-in-spring/

提交回复
热议问题