1.Fegin通过配置"${fegin.epf-admin}"
@FeignClient(value = "epf-admin",url = "${fegin.epf-admin}" )
public interface IAdminService {
@RequestMapping(value = "/admin/user/geUserInfoById", method = RequestMethod.GET)
public UserEntity geUserInfoById(@RequestParam("id")String id);
}
2.配置文件配置参数
fegin:
epf-admin: http://127.0.0.1:8183