[重大更新] 使用 spring 新特性 HttpServiceClient 替代 Dubbo 降低框架使用难度(半成本 数据权限不好使)

This commit is contained in:
疯狂的狮子Li
2026-03-20 19:56:09 +08:00
parent 9cd198d99d
commit b6d2274b53
127 changed files with 1894 additions and 1496 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;
}