springboot @FeignClient注解 使用注意事项

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

通过@FeignClient(name = "服务名", path = "服务前缀")注解调用远程服务时

    "服务名" 填写 远程服务配置的: spring.application. name=服务名

    "服务前缀" 填写 远程服务配置的:server.servlet.context-path ,远程服务没有配置,path不用配置

 

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

转载于:https://my.oschina.net/u/1428688/blog/3000390

你可能感兴趣的:(springboot @FeignClient注解 使用注意事项)