Spring @FeignClient

使用Spring Cloud搭建各類微服務以後,服務能夠經過@FeignClient使用和發現服務場中的其餘服務。 仍是以Config Server和Config Client爲例,這是服務場中的註冊的兩個微服務。 Config Server中定義了兩個服務接口(一個Post、一個Get方法) package demo.controller; import org.springframework
相關文章
相關標籤/搜索