Skip to content

Commit afb1745

Browse files
committed
修复ServiceParser
1 parent a7150bc commit afb1745

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

service/src/main/java/org/bekit/service/service/ServiceParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ private static Map<Class<?>, ServicePhaseExecutor> parseToPhaseExecutors(Class s
9797
Assert.isTrue(ClassUtils.hasConstructor(resultType), String.format("@ServiceExecute服务方法[%s]的参数ServiceContext的泛型[%s]必须得有默认构造函数", map.get(ServiceExecute.class).getMethod(), resultType));
9898
map.forEach((annotationClass, phaseExecutor) -> {
9999
Assert.isAssignable(phaseExecutor.getOrderType(), orderType, String.format("服务[%s]内的ServiceContext的泛型类型不统一", serviceClass));
100-
Assert.isAssignable(phaseExecutor.getReturnType(), resultType, String.format("服务[%s]内的ServiceContext的泛型类型不统一", serviceClass));
100+
Assert.isAssignable(phaseExecutor.getResultType(), resultType, String.format("服务[%s]内的ServiceContext的泛型类型不统一", serviceClass));
101101
});
102102

103103
return map;

0 commit comments

Comments
 (0)