Use better return types for the reactive option (#913)

This commit is contained in:
Christophe Bornet
2018-09-02 09:49:49 +02:00
committed by William Cheng
parent 8ccb7135d3
commit 026c26075d
9 changed files with 148 additions and 132 deletions

View File

@@ -355,6 +355,9 @@ public class SpringCodegen extends AbstractJavaCodegen
if (this.async) {
additionalProperties.put(RESPONSE_WRAPPER, "CompletableFuture");
}
if (this.reactive) {
additionalProperties.put(RESPONSE_WRAPPER, "Mono");
}
} else if (this.async) {
additionalProperties.put(RESPONSE_WRAPPER, "Callable");
}