spring-cloud / spring-cloud/spring-cloud-openfeign
## Bug Report: @EnableFeignClients defaultConfiguration not working with basePackages scope
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.3k
- Forks
- 838
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 13
Description
Issue Description
When using @EnableFeignClients annotation with both basePackages and defaultConfiguration parameters, the defaultConfiguration doesn't properly scope to only the specified packages. The configuration either applies globally or doesn't work at all.
Current Behavior
@EnableFeignClients(basePackages = "com.gls.athena.sdk.amap.feign", defaultConfiguration = AmapFeignConfig.class)
public class AmapAutoConfig {
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the @EnableFeignClients annotation usage shown in AmapAutoConfig and reproduce the behavior with both basePackages and defaultConfiguration set. Trace how the package scope and default configuration are processed; done when AmapFeignConfig applies only to clients in com.gls.athena.sdk.amap.feign without becoming global or being ignored.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100