Skip to content

Commit a119225

Browse files
committed
fix: check plugin endpoint method for proper return class
1 parent d3cf4ba commit a119225

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/framework/plugin/LowcoderPluginManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ private boolean checkHandlerMethod(Method method)
172172
{
173173
ResolvableType returnType = ResolvableType.forMethodReturnType(method);
174174

175-
return (returnType.isAssignableFrom(Mono.class)
175+
return (returnType.getRawClass().isAssignableFrom(Mono.class)
176176
&& returnType.getGenerics().length == 1
177177
&& returnType.getGeneric(0).isAssignableFrom(ServerResponse.class)
178178
&& method.getParameterCount() == 1

0 commit comments

Comments
 (0)