spring流只能读一次的问题
spring吧
全部回复
仅看楼主
level 1
我恨死你的
楼主
httprequest的流读取一次后,后续的处理读流就会失败,但是如果不加@RequestBody就不会,这是为什么呢?
这里在拦截其中读取http post时候的body流
这种有@RequestBody的就会报错java.lang.IllegalStateException: getReader() has already been called for this request
如果去掉@RequestBody就不会报错了
2017年11月01日 05点11分
1
1