Revert "[重大更新] 使用 spring feign 替代 HttpServiceClient (功能太新 支持不完全 使用成本太高)"

This reverts commit 485c2001
This commit is contained in:
疯狂的狮子Li
2026-03-24 18:01:00 +08:00
parent e44e5727a6
commit 2fdcf44dbb
62 changed files with 1161 additions and 817 deletions

View File

@@ -0,0 +1,38 @@
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;
}