spring-cloud-openfeign icon indicating copy to clipboard operation
spring-cloud-openfeign copied to clipboard

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

Open george510257 opened this issue 4 months ago • 1 comments

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 {
}

george510257 avatar Aug 26 '25 03:08 george510257

The defaultConfiguration should only apply to FeignClient interfaces within the specified basePackages = "com.gls.athena.sdk.amap.feign" scope, without affecting FeignClients in other packages.

george510257 avatar Aug 26 '25 03:08 george510257