currentContext = DataPermissionHelper.getContext();
+ currentContext.clear();
+ if (context != null && !context.isEmpty()) {
+ currentContext.putAll(context);
+ }
+ }
+}
diff --git a/ruoyi-common/ruoyi-common-http/src/main/java/org/dromara/common/http/support/RemoteHttpFallbackProxyPostProcessor.java b/ruoyi-common/ruoyi-common-http/src/main/java/org/dromara/common/http/support/RemoteHttpFallbackProxyPostProcessor.java
deleted file mode 100644
index 50e4166a3..000000000
--- a/ruoyi-common/ruoyi-common-http/src/main/java/org/dromara/common/http/support/RemoteHttpFallbackProxyPostProcessor.java
+++ /dev/null
@@ -1,165 +0,0 @@
-package org.dromara.common.http.support;
-
-import org.aopalliance.intercept.MethodInterceptor;
-import org.dromara.common.core.annotation.RemoteHttpService;
-import org.springframework.aop.framework.ProxyFactory;
-import org.springframework.beans.BeansException;
-import org.springframework.beans.factory.BeanClassLoaderAware;
-import org.springframework.beans.factory.BeanFactoryAware;
-import org.springframework.beans.factory.config.BeanDefinition;
-import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
-import org.springframework.beans.factory.config.BeanPostProcessor;
-import org.springframework.util.ClassUtils;
-import org.springframework.util.ReflectionUtils;
-
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
-import java.lang.reflect.UndeclaredThrowableException;
-
-/**
- * 远程 HTTP 代理 fallback 包装器.
- *
- * 仅包装注册器生成的远程 HTTP 代理 Bean。代理调用报错时,
- * 按接口上声明的 fallback 实现兜底,不处理本地 provider Bean。
- *
- *
这里故意保持和之前 mock/stub 类似的简单约束:
- * fallback 必须实现接口本身,且方法签名与接口保持一致。
- *
- * @author Lion Li
- */
-public class RemoteHttpFallbackProxyPostProcessor
- implements BeanPostProcessor, BeanFactoryAware, BeanClassLoaderAware {
-
- private static final String HTTP_SERVICE_GROUP_NAME_ATTRIBUTE = "httpServiceGroupName";
- private static final String FALLBACK_WRAPPED_ATTRIBUTE = "remoteHttpFallbackWrapped";
-
- private ConfigurableListableBeanFactory beanFactory;
- private ClassLoader beanClassLoader;
-
- @Override
- public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws BeansException {
- this.beanFactory = (ConfigurableListableBeanFactory) beanFactory;
- }
-
- @Override
- public void setBeanClassLoader(ClassLoader classLoader) {
- this.beanClassLoader = classLoader;
- }
-
- @Override
- public Object postProcessAfterInitialization(Object bean, String beanName) {
- if (bean instanceof FallbackDecoratedProxy) {
- return bean;
- }
- Class> serviceInterface = resolveRemoteServiceInterface(beanName, bean);
- if (serviceInterface == null) {
- return bean;
- }
- RemoteHttpService remoteHttpService = serviceInterface.getAnnotation(RemoteHttpService.class);
- if (remoteHttpService == null || remoteHttpService.fallback() == void.class) {
- return bean;
- }
- Class> fallbackClass = remoteHttpService.fallback();
- if (!serviceInterface.isAssignableFrom(fallbackClass)) {
- throw new IllegalStateException("Fallback class must implement remote service interface: "
- + fallbackClass.getName() + " -> " + serviceInterface.getName());
- }
- ProxyFactory proxyFactory = new ProxyFactory(bean);
- proxyFactory.setInterfaces(ClassUtils.getAllInterfacesForClass(bean.getClass(), this.beanClassLoader));
- proxyFactory.addInterface(FallbackDecoratedProxy.class);
- proxyFactory.addAdvice((MethodInterceptor) invocation -> {
- Method method = invocation.getMethod();
- if (method.getDeclaringClass() == Object.class) {
- return invocation.proceed();
- }
- try {
- return invocation.proceed();
- } catch (Throwable ex) {
- return invokeFallback(serviceInterface, fallbackClass, method, invocation.getArguments(), ex);
- }
- });
- markWrapped(beanName);
- return proxyFactory.getProxy(this.beanClassLoader);
- }
-
- private Class> resolveRemoteServiceInterface(String beanName, Object bean) {
- if (this.beanFactory == null || !this.beanFactory.containsBeanDefinition(beanName)) {
- return null;
- }
- BeanDefinition beanDefinition = this.beanFactory.getBeanDefinition(beanName);
- if (beanDefinition.getAttribute(HTTP_SERVICE_GROUP_NAME_ATTRIBUTE) == null) {
- return null;
- }
- if (Boolean.TRUE.equals(beanDefinition.getAttribute(FALLBACK_WRAPPED_ATTRIBUTE))) {
- return null;
- }
- Class> beanClass = resolveBeanClass(beanDefinition);
- if (beanClass != null && beanClass.isInterface() && beanClass.isAnnotationPresent(RemoteHttpService.class)) {
- return beanClass;
- }
- for (Class> interfaceType : ClassUtils.getAllInterfacesForClass(bean.getClass(), this.beanClassLoader)) {
- if (interfaceType.isAnnotationPresent(RemoteHttpService.class)) {
- return interfaceType;
- }
- }
- return null;
- }
-
- private Class> resolveBeanClass(BeanDefinition beanDefinition) {
- String beanClassName = beanDefinition.getBeanClassName();
- return beanClassName == null ? null : ClassUtils.resolveClassName(beanClassName, this.beanClassLoader);
- }
-
- private Object invokeFallback(Class> serviceInterface, Class> fallbackClass, Method method, Object[] args, Throwable ex)
- throws Throwable {
- Object fallbackInstance = instantiateFallback(fallbackClass);
- Method fallbackMethod = ReflectionUtils.findMethod(fallbackClass, method.getName(), method.getParameterTypes());
- if (fallbackMethod == null) {
- throw unwrap(ex);
- }
- ReflectionUtils.makeAccessible(fallbackMethod);
- return invokeMethod(fallbackInstance, fallbackMethod, args);
- }
-
- private Object instantiateFallback(Class> fallbackClass) {
- if (this.beanFactory == null) {
- throw new IllegalStateException("BeanFactory not initialized for remote fallback: " + fallbackClass.getName());
- }
- return this.beanFactory.getBean(fallbackClass);
- }
-
- private void markWrapped(String beanName) {
- if (this.beanFactory == null || !this.beanFactory.containsBeanDefinition(beanName)) {
- return;
- }
- this.beanFactory.getBeanDefinition(beanName).setAttribute(FALLBACK_WRAPPED_ATTRIBUTE, true);
- }
-
- private Object invokeMethod(Object target, Method method, Object[] args) throws Throwable {
- try {
- return method.invoke(target, args);
- } catch (InvocationTargetException ex) {
- throw unwrap(ex.getTargetException());
- } catch (IllegalAccessException ex) {
- throw new IllegalStateException("Could not invoke remote fallback method: " + method, ex);
- } catch (UndeclaredThrowableException ex) {
- throw unwrap(ex);
- } catch (RuntimeException ex) {
- throw unwrap(ex);
- }
- }
-
- private Throwable unwrap(Throwable throwable) {
- Throwable current = throwable;
- while (current instanceof InvocationTargetException invocationTargetException && invocationTargetException.getTargetException() != null) {
- current = invocationTargetException.getTargetException();
- }
- while (current instanceof UndeclaredThrowableException undeclaredThrowableException && undeclaredThrowableException.getUndeclaredThrowable() != null) {
- current = undeclaredThrowableException.getUndeclaredThrowable();
- }
- return current;
- }
-
- private interface FallbackDecoratedProxy {
- }
-}
diff --git a/ruoyi-common/ruoyi-common-http/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/ruoyi-common/ruoyi-common-http/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
index 9b53874f5..e7cd7b28b 100644
--- a/ruoyi-common/ruoyi-common-http/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
+++ b/ruoyi-common/ruoyi-common-http/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
@@ -1 +1,2 @@
org.dromara.common.http.config.RemoteHttpAutoConfiguration
+org.dromara.common.http.config.RemoteHttpDataPermissionAutoConfiguration
diff --git a/ruoyi-common/ruoyi-common-redis/pom.xml b/ruoyi-common/ruoyi-common-redis/pom.xml
index f8a5a477f..5f31a1fe9 100644
--- a/ruoyi-common/ruoyi-common-redis/pom.xml
+++ b/ruoyi-common/ruoyi-common-redis/pom.xml
@@ -68,7 +68,6 @@
org.apache.fory
fory-core
- 0.13.1
diff --git a/ruoyi-gateway-mvc/src/main/java/org/dromara/gateway/handler/GatewayExceptionHandler.java b/ruoyi-gateway-mvc/src/main/java/org/dromara/gateway/handler/GatewayExceptionHandler.java
index 18d6b6256..d5f69514a 100644
--- a/ruoyi-gateway-mvc/src/main/java/org/dromara/gateway/handler/GatewayExceptionHandler.java
+++ b/ruoyi-gateway-mvc/src/main/java/org/dromara/gateway/handler/GatewayExceptionHandler.java
@@ -34,7 +34,8 @@ public class GatewayExceptionHandler {
public void handle(HttpServletRequest request, HttpServletResponse response, Throwable ex) throws IOException {
int code;
String msg;
- if ("NotFoundException".equals(ex.getClass().getSimpleName())) {
+ if ("NotFoundException".equals(ex.getClass().getSimpleName())
+ || ex.getMessage().contains("Unable to find instance")) {
code = HttpStatus.NOT_FOUND;
msg = "服务未找到";
} else if (ex instanceof ResponseStatusException responseStatusException) {
diff --git a/ruoyi-modules/ruoyi-resource/src/main/java/org/dromara/resource/dubbo/RemoteFileServiceImpl.java b/ruoyi-modules/ruoyi-resource/src/main/java/org/dromara/resource/dubbo/RemoteFileServiceImpl.java
index fc7d6ab7f..88871775e 100644
--- a/ruoyi-modules/ruoyi-resource/src/main/java/org/dromara/resource/dubbo/RemoteFileServiceImpl.java
+++ b/ruoyi-modules/ruoyi-resource/src/main/java/org/dromara/resource/dubbo/RemoteFileServiceImpl.java
@@ -28,7 +28,7 @@ import java.util.List;
*/
@Slf4j
@RequiredArgsConstructor
-@RemoteServiceController
+@RemoteServiceController(path = "/remote/file")
public class RemoteFileServiceImpl implements RemoteFileService {
private final ISysOssService sysOssService;
diff --git a/ruoyi-modules/ruoyi-resource/src/main/java/org/dromara/resource/dubbo/RemoteMailServiceImpl.java b/ruoyi-modules/ruoyi-resource/src/main/java/org/dromara/resource/dubbo/RemoteMailServiceImpl.java
index 59baae50a..f5564d9e8 100644
--- a/ruoyi-modules/ruoyi-resource/src/main/java/org/dromara/resource/dubbo/RemoteMailServiceImpl.java
+++ b/ruoyi-modules/ruoyi-resource/src/main/java/org/dromara/resource/dubbo/RemoteMailServiceImpl.java
@@ -14,7 +14,7 @@ import org.dromara.resource.api.RemoteMailService;
*/
@Slf4j
@RequiredArgsConstructor
-@RemoteServiceController
+@RemoteServiceController(path = "/remote/mail")
public class RemoteMailServiceImpl implements RemoteMailService {
/**
diff --git a/ruoyi-modules/ruoyi-resource/src/main/java/org/dromara/resource/dubbo/RemoteMessageServiceImpl.java b/ruoyi-modules/ruoyi-resource/src/main/java/org/dromara/resource/dubbo/RemoteMessageServiceImpl.java
index 528b8511e..4d84cc1a7 100644
--- a/ruoyi-modules/ruoyi-resource/src/main/java/org/dromara/resource/dubbo/RemoteMessageServiceImpl.java
+++ b/ruoyi-modules/ruoyi-resource/src/main/java/org/dromara/resource/dubbo/RemoteMessageServiceImpl.java
@@ -16,7 +16,7 @@ import java.util.List;
*/
@Slf4j
@RequiredArgsConstructor
-@RemoteServiceController
+@RemoteServiceController(path = "/remote/message")
public class RemoteMessageServiceImpl implements RemoteMessageService {
/**
diff --git a/ruoyi-modules/ruoyi-resource/src/main/java/org/dromara/resource/dubbo/RemoteSmsServiceImpl.java b/ruoyi-modules/ruoyi-resource/src/main/java/org/dromara/resource/dubbo/RemoteSmsServiceImpl.java
index b2764ae5e..d2cb9f2d0 100644
--- a/ruoyi-modules/ruoyi-resource/src/main/java/org/dromara/resource/dubbo/RemoteSmsServiceImpl.java
+++ b/ruoyi-modules/ruoyi-resource/src/main/java/org/dromara/resource/dubbo/RemoteSmsServiceImpl.java
@@ -21,7 +21,7 @@ import java.util.List;
*/
@Slf4j
@RequiredArgsConstructor
-@RemoteServiceController
+@RemoteServiceController(path = "/inner/remote/resource/sms")
public class RemoteSmsServiceImpl implements RemoteSmsService {
/**
diff --git a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteClientServiceImpl.java b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteClientServiceImpl.java
index bc3eb263c..a5403dc21 100644
--- a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteClientServiceImpl.java
+++ b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteClientServiceImpl.java
@@ -14,7 +14,7 @@ import org.dromara.system.service.ISysClientService;
* @author Michelle.Chung
*/
@RequiredArgsConstructor
-@RemoteServiceController
+@RemoteServiceController(path = "/remote/client")
public class RemoteClientServiceImpl implements RemoteClientService {
private final ISysClientService sysClientService;
diff --git a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteConfigServiceImpl.java b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteConfigServiceImpl.java
index 9d9b946e2..6afb1332c 100644
--- a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteConfigServiceImpl.java
+++ b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteConfigServiceImpl.java
@@ -15,7 +15,7 @@ import java.util.List;
* @author Michelle.Chung
*/
@RequiredArgsConstructor
-@RemoteServiceController
+@RemoteServiceController(path = "/remote/config")
public class RemoteConfigServiceImpl implements RemoteConfigService {
private final ISysConfigService configService;
diff --git a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteDataScopeServiceImpl.java b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteDataScopeServiceImpl.java
index ae0cd18f5..9ff55785f 100644
--- a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteDataScopeServiceImpl.java
+++ b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteDataScopeServiceImpl.java
@@ -25,7 +25,7 @@ import java.util.List;
* @author Lion Li
*/
@RequiredArgsConstructor
-@RemoteServiceController
+@RemoteServiceController(path = "/remote/data-scope")
public class RemoteDataScopeServiceImpl implements RemoteDataScopeService {
private final SysRoleDeptMapper roleDeptMapper;
diff --git a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteDeptServiceImpl.java b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteDeptServiceImpl.java
index 19cf7dd23..dbc08873e 100644
--- a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteDeptServiceImpl.java
+++ b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteDeptServiceImpl.java
@@ -25,7 +25,7 @@ import java.util.Map;
* @author Lion Li
*/
@RequiredArgsConstructor
-@RemoteServiceController
+@RemoteServiceController(path = "/remote/dept")
public class RemoteDeptServiceImpl implements RemoteDeptService {
private final ISysDeptService deptService;
diff --git a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteDictServiceImpl.java b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteDictServiceImpl.java
index e910f5158..db36b0c43 100644
--- a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteDictServiceImpl.java
+++ b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteDictServiceImpl.java
@@ -18,7 +18,7 @@ import java.util.List;
* @author Lion Li
*/
@RequiredArgsConstructor
-@RemoteServiceController
+@RemoteServiceController(path = "/remote/dict")
public class RemoteDictServiceImpl implements RemoteDictService {
private final ISysDictTypeService sysDictTypeService;
diff --git a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteLogServiceImpl.java b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteLogServiceImpl.java
index 527da225a..0fa37d304 100644
--- a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteLogServiceImpl.java
+++ b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteLogServiceImpl.java
@@ -19,7 +19,7 @@ import org.springframework.web.bind.annotation.PostMapping;
* @author Lion Li
*/
@RequiredArgsConstructor
-@RemoteServiceController
+@RemoteServiceController(path = "/remote/log")
public class RemoteLogServiceImpl implements RemoteLogService {
private final ISysOperLogService operLogService;
diff --git a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemotePermissionServiceImpl.java b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemotePermissionServiceImpl.java
index 8149f4fb6..154674bd7 100644
--- a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemotePermissionServiceImpl.java
+++ b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemotePermissionServiceImpl.java
@@ -13,7 +13,7 @@ import java.util.Set;
* @author Lion Li
*/
@RequiredArgsConstructor
-@RemoteServiceController
+@RemoteServiceController(path = "/remote/permission")
public class RemotePermissionServiceImpl implements RemotePermissionService {
private final ISysPermissionService permissionService;
diff --git a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemotePostServiceImpl.java b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemotePostServiceImpl.java
index ad2eaa098..0fc1d66d8 100644
--- a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemotePostServiceImpl.java
+++ b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemotePostServiceImpl.java
@@ -20,7 +20,7 @@ import java.util.Map;
* @author Lion Li
*/
@RequiredArgsConstructor
-@RemoteServiceController
+@RemoteServiceController(path = "/remote/post")
public class RemotePostServiceImpl implements RemotePostService {
private final SysPostMapper postMapper;
diff --git a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteRoleServiceImpl.java b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteRoleServiceImpl.java
index 6289118b7..e7017b434 100644
--- a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteRoleServiceImpl.java
+++ b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteRoleServiceImpl.java
@@ -20,7 +20,7 @@ import java.util.Map;
* @author Lion Li
*/
@RequiredArgsConstructor
-@RemoteServiceController
+@RemoteServiceController(path = "/remote/role")
public class RemoteRoleServiceImpl implements RemoteRoleService {
private final SysRoleMapper roleMapper;
diff --git a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteSocialServiceImpl.java b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteSocialServiceImpl.java
index 1344641be..55851b0b3 100644
--- a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteSocialServiceImpl.java
+++ b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteSocialServiceImpl.java
@@ -18,7 +18,7 @@ import java.util.List;
* @author Michelle.Chung
*/
@RequiredArgsConstructor
-@RemoteServiceController
+@RemoteServiceController(path = "/remote/social")
public class RemoteSocialServiceImpl implements RemoteSocialService {
private final ISysSocialService sysSocialService;
diff --git a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteTaskAssigneeServiceImpl.java b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteTaskAssigneeServiceImpl.java
index 1630343b4..e56a17aae 100644
--- a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteTaskAssigneeServiceImpl.java
+++ b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteTaskAssigneeServiceImpl.java
@@ -31,7 +31,7 @@ import java.util.Map;
* @author Lion Li
*/
@RequiredArgsConstructor
-@RemoteServiceController
+@RemoteServiceController(path = "/remote/task-assignee")
public class RemoteTaskAssigneeServiceImpl implements RemoteTaskAssigneeService {
// 上级Service注入下级Service 其他Service永远不可能注入当前类 避免循环注入
diff --git a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteUserServiceImpl.java b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteUserServiceImpl.java
index 6d2c428a6..566c78711 100644
--- a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteUserServiceImpl.java
+++ b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteUserServiceImpl.java
@@ -45,7 +45,7 @@ import java.util.*;
* @author Lion Li
*/
@RequiredArgsConstructor
-@RemoteServiceController
+@RemoteServiceController(path = "/remote/user")
public class RemoteUserServiceImpl implements RemoteUserService {
private final ISysUserService userService;
diff --git a/ruoyi-modules/ruoyi-workflow/src/main/java/org/dromara/workflow/dubbo/RemoteWorkflowServiceImpl.java b/ruoyi-modules/ruoyi-workflow/src/main/java/org/dromara/workflow/dubbo/RemoteWorkflowServiceImpl.java
index 06753c852..8f8dc2526 100644
--- a/ruoyi-modules/ruoyi-workflow/src/main/java/org/dromara/workflow/dubbo/RemoteWorkflowServiceImpl.java
+++ b/ruoyi-modules/ruoyi-workflow/src/main/java/org/dromara/workflow/dubbo/RemoteWorkflowServiceImpl.java
@@ -17,7 +17,7 @@ import java.util.Map;
* @Author ZETA
* @Date 2024/6/3
*/
-@RemoteServiceController
+@RemoteServiceController(path = "/remote/workflow")
@RequiredArgsConstructor
public class RemoteWorkflowServiceImpl implements RemoteWorkflowService {
diff --git a/script/config/nacos/application-common.yml b/script/config/nacos/application-common.yml
index c212a58fa..b13691ffc 100644
--- a/script/config/nacos/application-common.yml
+++ b/script/config/nacos/application-common.yml
@@ -9,20 +9,10 @@ server:
# 最大线程数
max: 256
-remote:
- http:
- # 远程接口扫描范围,支持 Ant 风格包路径
- scan-packages:
- - org.dromara.**.api
- # 全局请求log
- request-log: true
- # info 基础信息 param 参数信息 full 全部
- log-level: info
-
spring:
http:
clients:
- # 默认 client HTTP 请求超时,供 RestClient / HTTP Service Client 复用
+ # Spring HTTP 客户端默认超时配置,供非 Feign 客户端复用
connect-timeout: 3s
read-timeout: 10s
imperative:
@@ -66,6 +56,9 @@ spring:
# 允许对象忽略json中不存在的属性
fail_on_unknown_properties: false
cloud:
+ openfeign:
+ circuitbreaker:
+ enabled: true
inetutils:
# 指定全局使用ip网段
preferred-networks: