You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a KafkaListener method looks like this: java.util.concurrent.CompletableFuture<ExampleOut>handleExampleIn(@Payload ExampleIn examplein, @Headers Map<String, String> headers);
the resulting controller method looks like this (returning type is ExampleOut which is correct): public ExampleOut executeExampleIn(@RequestBody ExampleIn examplein, @RequestParam @Parameter(hidden = true) Map<String, String> params, HttpServletResponse servletResponse, @RequestHeader Map<String, String> headers) { kafkaSenderService.send(topicName, examplein, params, servletResponse); return new ExampleOut(); }
But if a KafkaListener method doesn't use wrappers for the returning type: ExampleOuthandleExampleIn(@Payload ExampleIn examplein, @Headers Map<String, String> headers);
the resulting controller method return type will be void.
location: pro/axenix_innovation/axenapi/utils/ElementHelper.java -> method getReturnedTypeMirror (the method considers only types with typed arguments, for other types null is returned).
The text was updated successfully, but these errors were encountered:
If a KafkaListener method looks like this:
java.util.concurrent.CompletableFuture<ExampleOut>
handleExampleIn(@Payload ExampleIn examplein, @Headers Map<String, String> headers);
the resulting controller method looks like this (returning type is ExampleOut which is correct):
public
ExampleOut
executeExampleIn(@RequestBody ExampleIn examplein,
@RequestParam @Parameter(hidden = true) Map<String, String> params,
HttpServletResponse servletResponse, @RequestHeader Map<String, String> headers) {
kafkaSenderService.send(topicName, examplein, params, servletResponse);
return new ExampleOut();
}
But if a KafkaListener method doesn't use wrappers for the returning type:
ExampleOut
handleExampleIn(@Payload ExampleIn examplein, @Headers Map<String, String> headers);
the resulting controller method return type will be
void
.location: pro/axenix_innovation/axenapi/utils/ElementHelper.java -> method getReturnedTypeMirror (the method considers only types with typed arguments, for other types
null
is returned).The text was updated successfully, but these errors were encountered: