com.github.easilyuse.core.annotation.EnableHttpClients Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of easily-http Show documentation
Show all versions of easily-http Show documentation
Easy implementation of http client remote calls through annotations
The newest version!
package com.github.easilyuse.core.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.context.annotation.Import;
import com.github.easilyuse.core.spring.registrar.HttpClientScannerRegistrar;
/**
*
*
* Title:EnableHttpClients
*
*
* Description: 通过该注解,可以开启spring扫描HttpClient注解
*
*
* @author linyb
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Import(HttpClientScannerRegistrar.class)
public @interface EnableHttpClients {
// 配置扫描有用到httpclient注解的父级包
String[] basePackages() default {};
// 配置扫描有用到httpclient注解的父级类
Class>[] basePackageClasses() default {};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy