Skip to content

luckylookas/custom-feign-interceptors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

custom-feign-interceptors

enables adding Interceptors for single Feign Clients, instead of injecting all available Interceptors into every client.

usage

@InterceptedFeignClient(
       value = "http://target-service,
       interceptors = {Interceptor.class, AnotherInterceptor.class}
) public interface feigClient {
}

Where value behaves analogous to the default @FeignClient (an uri or a service-name for eg- ribbon). The interceptors are expected to be provided as Spring Beans and will be looked up for each client separately.

Can be used in combination with regular @FeignClient interfaces

properties

name effect default
com.feign.base-package the package to be Scanned for @InterceptedFeignClient annotated classes '*'

About

specify interceptors per feign client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages