注释类型 EnableOpenFeign
-
@Target(TYPE) @Retention(RUNTIME) @Documented @EnableFeignClients @Import({FeignInterceptorConfiguration.class,ShoreFeignClientsRegistrar.class}) public @interface EnableOpenFeign
Feign注解- 作者:
- youta
-
-
可选元素概要
可选元素 修饰符和类型 可选元素 说明 Class<?>[]basePackageClassesType-safe alternative tobasePackages()for specifying the packages to scan for annotated components.String[]basePackagesBase packages to scan for annotated components.Class<?>[]clientsList of classes annotated with @FeignClient.Class<?>[]defaultConfigurationA custom@Configurationfor all feign clients.String[]valueAlias for thebasePackages()attribute.
-
-
-
元素详细资料
-
value
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").- 返回:
- the array of 'basePackages'.
- 默认值:
- {}
-
-
-
basePackages
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.- 返回:
- the array of 'basePackages'.
- 默认值:
- {"tech.shiyunet.payment", "me.youm.frame.log.api"}
-
-
-
basePackageClasses
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.
- 返回:
- the array of 'basePackageClasses'.
- 默认值:
- {}
-
-
-
defaultConfiguration
Class<?>[] defaultConfiguration
A custom@Configurationfor all feign clients. Can contain override@Beandefinition for the pieces that make up the client, for instanceDecoder,Encoder,Contract.- 另请参阅:
for the defaults
- 默认值:
- {}
-
-
-
clients
Class<?>[] clients
List of classes annotated with @FeignClient. If not empty, disables classpath scanning.- 返回:
- class
- 默认值:
- {}
-
-