如果接口和方法都有注解,哪个优先?
Open
- Dominant language
- Java
- Stars
- 1.9k
- Forks
- 241
- PR merge metrics
- No merged PRs in 30d
Description
我在接口和方法都加了BasicAuth注解,但是实际上方法调用的时候获取到的数据是接口上的。
预期:
如果方法没有注解,就看接口上的注解。
如果方法有,方法上的注解优先。




正常来说应该是方法优先而不是接口优先。
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.