java.lang.IllegalStateException STREAMED
829 ワード
java.lang.IllegalStateException STREAMED
request.getInputStream()とrequest.getReader()は同時に呼び出すことはできません.そうしないとjavaが発生します.lang.IllegalStateException異常.
APIに書き込みがあります.
getInputStream
public ServletInputStream getInputStream()
throws java.io.IOException
Retrieves the body of the request as binary data using a
ServletInputStream
. Either this method or getReader()
may be called to read the body, not both. Returns:
a
ServletInputStream
object containing the body of the request Throws:
java.lang.IllegalStateException
- if the getReader()
method has already been called for this request java.io.IOException
- if an input or output exception occurred