我们有一个非常简单的FeignClient
@GetMapping("/{id:.+}")
ResponseEntity<Resource> get(
final HttpServletRequest request,
@PathVariable(name = "id") final String id);
我们正在使用x Hoxton SR 4 spring-cloud依赖项和它使用了弹簧云openfalse2.2.2.RELEASE.
由于某种原因,此GET请求被转换为POST我们不知道为什么。
将{id:.+}
更改为{id}
可修复此问题。