Why is HttpServletRequest inputstream empty?

后端 未结 7 1675
春和景丽
春和景丽 2020-11-30 05:52

I have this code where I read the input from a request input stream and use a JacksonMapper to convert into a POJO. Its running in a jetty 7 container with guice support.

7条回答
  •  一个人的身影
    2020-11-30 06:29

    I've had this problem with a post. I solved it by FIRST reading the inputstream and putting it in a cache, before reading the parameters. That seemed to do the trick

提交回复
热议问题