Package reactivefeign.spring.config
Annotation Type EnableReactiveFeignClients
-
@Retention(RUNTIME) @Target(TYPE) @Documented @Import(reactivefeign.spring.config.ReactiveFeignClientsRegistrar.class) public @interface EnableReactiveFeignClientsScans for interfaces that declare they are reactive feign clients (via). Configures component scanning directives for use with@ReactiveFeignClientclasses. patterned after org.springframework.cloud.netflix.feign.EnableFeignClients@Configuration
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Class<?>[]basePackageClassesType-safe alternative tobasePackages()for specifying the packages to scan for annotated components.java.lang.String[]basePackagesBase packages to scan for annotated components.java.lang.Class<?>[]clientsList of classes annotated with @ReactiveFeignClient.java.lang.Class<?>[]defaultConfigurationA custom@Configurationfor all feign clients.java.lang.String[]valueAlias for thebasePackages()attribute.
-
-
-
Element Detail
-
value
java.lang.String[] value
Alias for thebasePackages()attribute. Allows for more concise annotation declarations e.g.:@ComponentScan("org.my.pkg")instead of@ComponentScan(basePackages="org.my.pkg").- Returns:
- the array of 'basePackages'.
- Default:
- {}
-
-
-
basePackages
java.lang.String[] basePackages
Base packages to scan for annotated components.value()is an alias for (and mutually exclusive with) this attribute.Use
basePackageClasses()for a type-safe alternative to String-based package names.- Returns:
- the array of 'basePackages'.
- Default:
- {}
-
-
-
basePackageClasses
java.lang.Class<?>[] basePackageClasses
Type-safe alternative tobasePackages()for specifying the packages to scan for annotated components. The package of each class specified will be scanned.Consider creating a special no-op marker class or interface in each package that serves no purpose other than being referenced by this attribute.
- Returns:
- the array of 'basePackageClasses'.
- Default:
- {}
-
-
-
defaultConfiguration
java.lang.Class<?>[] defaultConfiguration
A custom@Configurationfor all feign clients. Can contain override@Beandefinition for the pieces that make up the client, for instanceContract,ReactiveHttpRequestInterceptor.- See Also:
for the defaults
- Default:
- {}
-
-