package org.onetwo.cloud.feign;

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 org.springframework.core.annotation.AliasFor;

/**
 * @author wayshall
 * <br/>
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface EnhanceFeignClient {

	@AliasFor("value")
	String basePath() default "";

	/***
	 * 给feign加上basePath，默认根据FeignClient的name查找配置
	 * @author wayshall
	 * @return
	 */
	@AliasFor("basePath")
	String value() default "";
	
	Class<?> local() default void.class;
}

@@ -325,16 +325,82 @@
 r;%0A%0A/**%0A
+ * %E6%9C%80%E5%A5%BD%E5%8A%A0%E8%BD%BD%E6%9C%80%E9%A1%B6%E5%B1%82%E7%9A%84api%E6%8E%A5%E5%8F%A3%EF%BC%8C%E8%80%8C%E9%9D%9Eclient%E6%8E%A5%E5%8F%A3%EF%BC%8C%E9%81%BF%E5%85%8D%E4%BD%BF%E7%94%A8%E6%A1%86%E6%9E%B6%E7%9A%84%E6%8F%92%E4%BB%B6%E5%BC%80%E5%8F%91%E5%8A%9F%E8%83%BD%E6%97%B6%EF%BC%8C%E8%87%AA%E5%8A%A8%E6%B3%A8%E5%85%A5%E4%BA%86%E6%8F%92%E4%BB%B6%E8%B7%AF%E5%BE%84%EF%BC%8C%E6%B1%A1%E6%9F%93feign%E7%9A%84%E8%B0%83%E7%94%A8%E8%B7%AF%E5%BE%84%0A
  * @auth

add comment