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

能否在@RetrofitClient上指定Bean Name #156

Open
KangbingZhao opened this issue May 31, 2023 · 2 comments
Open

能否在@RetrofitClient上指定Bean Name #156

KangbingZhao opened this issue May 31, 2023 · 2 comments

Comments

@KangbingZhao
Copy link

能否给同一个接口配置两个RetrofitClient Bean并且通过Bean name区分?

例如

@RetrofitClient(baseUrl = "serviceOne", name="one")
interface ServiceApi {}

@RetrofitClient(baseUrl = "serviceTwo", name="two")
interface ServiceApi {}
@chentianming11
Copy link
Collaborator

能将两个接口命名改成不一样的吗

@KangbingZhao
Copy link
Author

功能上没问题,但是它们实际上是一个接口,我想创建同一个接口的两个实例

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

2 participants