
com.github.bingoohuang.springrestclient.spring.SpringRestClientEnabledScan Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-rest-client Show documentation
Show all versions of spring-rest-client Show documentation
convenient spring rest client for rest services
package com.github.bingoohuang.springrestclient.spring;
import org.springframework.beans.factory.support.BeanNameGenerator;
import org.springframework.context.annotation.Import;
import java.lang.annotation.*;
@Documented
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import(SpringRestClientScannerRegistrar.class)
public @interface SpringRestClientEnabledScan {
// Alias for the {@link #basePackages()} attribute. Allows for more concise annotation declarations.
String[] value() default {};
/*
* Base packages to scan for MyBatis interfaces. Note that only interfaces
* with at least one method will be registered; concrete classes will be
* ignored.
*/
String[] basePackages() default {};
/*
* Type-safe alternative to {@link #basePackages()} 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.
*/
Class>[] basePackageClasses() default {};
/*
* The {@link BeanNameGenerator} class to be used for naming detected components
* within the Spring container.
*/
Class extends BeanNameGenerator> nameGenerator() default BeanNameGenerator.class;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy