javax.servlet.http.Part 代表什么?
What does the javax.servlet.http.Part stand for?
Part stand for? And which http request will reduce Parts that can be fetched by HttpServletRequest#getParts()有什么方法?
请举个例子,谢谢
它表示使用 Content-Type multipart/form-data
发送的 HTTP 请求的块。因此它可以是任何东西,因为每个部分都有自己的内容类型和名称,所以传统的请求参数,JSON、XML,这就是文件上传的方式。
Part stand for? And which http request will reduce Parts that can be fetched by HttpServletRequest#getParts()有什么方法?
请举个例子,谢谢
它表示使用 Content-Type multipart/form-data
发送的 HTTP 请求的块。因此它可以是任何东西,因为每个部分都有自己的内容类型和名称,所以传统的请求参数,JSON、XML,这就是文件上传的方式。