springboot @FeignClient註解 使用注意事項

經過@FeignClient(name = "服務名", path = "服務前綴")註解調用遠程服務時spring

    "服務名" 填寫 遠程服務配置的: spring.application. name=服務名app

    "服務前綴" 填寫 遠程服務配置的:server.servlet.context-path ,遠程服務沒有配置,path不用配置server

 

@FeignClient(name = "application name", path = "context-path")servlet

相關文章
相關標籤/搜索