package nl.ekholabs.nlp.client;

import nl.ekholabs.nlp.model.Language;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import static org.springframework.http.MediaType.APPLICATION_JSON_UTF8_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.POST;

@FeignClient(serviceId = "elsie-deetect")
public interface ElsieDeetectFeignClient {

  @RequestMapping(path = "elsie-deetect/identify", method = POST, produces = APPLICATION_JSON_UTF8_VALUE)
  Language identify(@RequestBody final String text);

}

@@ -172,27 +172,27 @@
 otation.
-RequestBody
+PostMapping
 ;%0Aimport
@@ -239,23 +239,20 @@
 .Request
-Mapping
+Body
 ;%0A%0Aimpor
@@ -327,82 +327,8 @@
 LUE;
-%0Aimport static org.springframework.web.bind.annotation.RequestMethod.POST;
 %0A%0A@F
@@ -414,21 +414,18 @@
 t %7B%0A%0A  @
-Reque
+Po
 stMappin
@@ -462,23 +462,8 @@
 fy%22,
- method = POST,
  pro

Replace RequestMapping with PostMapping.