OpenFeign and PATCH problem

Solved problems

I had a problem that was making me crazy, but luckily Stack Overflow turned out to be a savior. I would like to tell you about my experience to help others who may find themselves in a similar situation. My problem with OpenFeign started when I decided to use it in my Spring-based project. At first everything seemed to be working fine. Standard HTTP methods such as GET and POST worked without any problems. However, when I tried to use the PATCH method to update resources on the server, I hit a wall. It turned out that Feign does not support the PATCH method out of the box! On Stack Overflow they advise that if possible – change the methods and use PUT for updates instead of PATCH. But if you are integrating with a third party implementation and need PATCH, you should add an additional feign-okhttp dependency and the OkHttpClient bean. Following the tips helped me solve this problem.



Sometimes, even with popular tools, we may encounter difficulties that seem strange or unusual. Thanks to the joint efforts of other developers, we can quickly find solutions and avoid frustration.

Leave a Reply

Your email address will not be published. Required fields are marked *