Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有没有和openfeign整合使用的示例 #322

Open
hsapphire opened this issue May 12, 2023 · 3 comments
Open

有没有和openfeign整合使用的示例 #322

hsapphire opened this issue May 12, 2023 · 3 comments

Comments

@hsapphire
Copy link

Your question

describe your question clearly

Your scenes

describe your use scenes (why need this feature)

Your advice

describe the advice or solution you'd like

Environment

  • SOFARegistry version:
  • JVM version (e.g. java -version):
  • OS version (e.g. uname -a):
  • Maven version:
  • IDE version:
@hsapphire hsapphire changed the title 有没有和openfeign结束使用的示例 有没有和openfeign整合使用的示例 May 12, 2023
@NickNYU
Copy link
Contributor

NickNYU commented May 12, 2023

目前还没有,可以assign给你哈

@hsapphire
Copy link
Author

可以采用一个变通的方式,使用阿里云金融云提供的商业版客户端来实现spring cloud向sofa registry注册。官方文档:https://help.aliyun.com/document_detail/149861.html?spm=a2c4g.149858.0.0.2cc85b78FV207u。这个文档介绍了如何接入金融云maven仓库拉取相应客户端,以及相关配置。其中文档中介绍的配置是面向金融云使用场景的,对于开源版registry不适用,需要修改一下。需要通过-D参数进行赋值,必要的配置包括:com.alipay.env(配置成normal);com.alipay.confreg.url(配置成session的ip);com.alipay.ldc.zone(配置成session的nodes.localRegion配置,默认为DEFAULT_ZONE)。

麻烦想请教一下.
在配置文件中如何指定sofa地址和unique.id呢,
在这个文章中看到以下, instanceid是 uniqueid吗? 那地址是哪个属性呢? 其它三个如果在自己的服务器上搭建应该用不到吧.
sofa:
registry:
discovery:
instanceId: //当前登录账号的实例 ID。
antcloudVip: //当前地域的 ACVIP 地址值。
accessKey: //当前登录账号的 AccessKey ID。
secretKey: //当前登录账号的 AccessKey Secret。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants