Java @使用curl-b测试时,HeaderParam(“Cookie”)返回null;cookie:value";

Java @使用curl-b测试时,HeaderParam(“Cookie”)返回null;cookie:value";,java,spring,curl,jetty,Java,Spring,Curl,Jetty,我有功能 @POST @Consumes({ ExampleMediaTypes.PLAINTEXT_0_1_0, MediaType.TEXT_PLAIN, ExampleMediaTypes.SIMPLE_PROTOBUF_0_1_0, ExampleMediaTypes.SIMPLE_JSON_0_1_0, ExampleMediaTypes.STRUCTURED_JSON_0_1_0 }) @Produces({ PredictionMediaTypes.PLAINTEXT_0_1_0

我有功能

@POST
@Consumes({ ExampleMediaTypes.PLAINTEXT_0_1_0, MediaType.TEXT_PLAIN, ExampleMediaTypes.SIMPLE_PROTOBUF_0_1_0, ExampleMediaTypes.SIMPLE_JSON_0_1_0, ExampleMediaTypes.STRUCTURED_JSON_0_1_0 })
@Produces({ PredictionMediaTypes.PLAINTEXT_0_1_0 })
@Path("/main")
public ChunkedOutput<String> doPredict(ExamplesIterable examplesIterable,@HeaderParam("User-Agent") String userAgent, @HeaderParam("Cookie") String cookies) throws IOException {
    System.out.println("hello");
    System.out.println(cookies);
    System.out.println(userAgent);
    return new RequestHandler(executorService, exampleProcessorFactory).handleRequest(examplesIterable);
}
我明白了:

hello
null
curl/7.35.0
有什么问题吗?这是错误的卷曲请求还是注释错误

hello
null
curl/7.35.0