简体   繁体   中英

How to use PATCH method with Jersey client (2.25.1)?

I need to call a rest end point with the PATCH method but I can not find PATCH method in jersey client. Can anyone please help me how can I call the PATCH method? I am using java 8.

@PATCH is available from JAX-RS v2.1. Jersey in version 2.26 have that implemented.

In a version prior JAX-RS v2.1, common way of doing that is:

@HttpMethod("PATCH")
public void pathcMetod(...){}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM