mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2026-05-10 22:02:08 +08:00
[重大更新] 使用 spring feign 替代 HttpServiceClient (功能太新 支持不完全 使用成本太高)
This commit is contained in:
@@ -1,38 +0,0 @@
|
||||
package org.dromara.common.core.annotation;
|
||||
|
||||
import org.springframework.core.annotation.AliasFor;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* 声明远程 HTTP Service 所属服务.
|
||||
*
|
||||
* @author Lion Li
|
||||
*/
|
||||
@Target(ElementType.TYPE)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
public @interface RemoteHttpService {
|
||||
|
||||
/**
|
||||
* 服务名.
|
||||
*/
|
||||
@AliasFor("serviceId")
|
||||
String value() default "";
|
||||
|
||||
/**
|
||||
* 服务名.
|
||||
*/
|
||||
@AliasFor("value")
|
||||
String serviceId() default "";
|
||||
|
||||
/**
|
||||
* 远程调用失败时的 fallback 实现.
|
||||
*/
|
||||
Class<?> fallback() default void.class;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user