Http Servlet request lose params from POST body after read it once

前端 未结 13 2114
一个人的身影
一个人的身影 2020-11-22 14:56

I\'m trying to accessing two http request parameters in a Java Servlet filter, nothing new here, but was surprised to find that the parameters have already been consumed! Be

13条回答
  •  情歌与酒
    2020-11-22 15:32

    you can use servlet filter chain, but instead use the original one, you can create your own request yourownrequests extends HttpServletRequestWrapper.

提交回复
热议问题