com.github.easilyuse.core.annotation.HttpClient 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.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import com.github.easilyuse.core.enu.HttpMethod;
/**
*
*
* Title:HttpClient
*
*
* Description: 通过该注解配置远程http调用地址,GET或者POST请求
*
*
* @author linyb
*/
@Target({ ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface HttpClient {
String url();
HttpMethod HTTP_METHOD() default HttpMethod.GET;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy