spring-cloud / spring-cloud/spring-cloud-openfeign

## Bug Report: @EnableFeignClients defaultConfiguration not working with basePackages scope

Open
#1,242 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

waiting-for-triage
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.