在向JAX-RS REST服务器发送一些测试请求时,我找回了
400 - Bad Request
The request sent by the client was syntactically incorrect.
请求是
PUT http://localhost:8080/some/url
Content-Type: text-plain
foo
答案 0 :(得分:0)
Content-Type: text-plain
是拼写错误和错误的MIME类型。它应该是
Content-type: text/plain
这有点令人头疼。