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
Copy file name to clipboardExpand all lines: docs/generators/spring.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,7 @@ sidebar_label: spring
48
48
|interfaceOnly|Whether to generate only API interface stubs without the server files.||false|
49
49
|delegatePattern|Whether to generate the server files using the delegate pattern||false|
50
50
|singleContentTypes|Whether to select only one produces/consumes content-type by operation.||false|
51
+
|skipDefaultInterface|Whether to generate default implementations for java8 interfaces||false|
51
52
|async|use async Callable controllers||false|
52
53
|reactive|wrap responses in Mono/Flux Reactor types (spring-boot only)||false|
53
54
|responseWrapper|wrap the responses in given type (Future,Callable,CompletableFuture,ListenableFuture,DeferredResult,HystrixCommand,RxObservable,RxSingle or fully qualified type)||null|
@@ -79,6 +80,7 @@ public class SpringCodegen extends AbstractJavaCodegen
79
80
protectedbooleanasync = false;
80
81
protectedbooleanreactive = false;
81
82
protectedStringresponseWrapper = "";
83
+
protectedbooleanskipDefaultInterface = false;
82
84
protectedbooleanuseTags = false;
83
85
protectedbooleanuseBeanValidation = true;
84
86
protectedbooleanperformBeanValidation = false;
@@ -119,6 +121,7 @@ public SpringCodegen() {
119
121
cliOptions.add(CliOption.newBoolean(DELEGATE_PATTERN, "Whether to generate the server files using the delegate pattern", delegatePattern));
120
122
cliOptions.add(CliOption.newBoolean(SINGLE_CONTENT_TYPES, "Whether to select only one produces/consumes content-type by operation.", singleContentTypes));
121
123
updateJava8CliOptions();
124
+
cliOptions.add(CliOption.newBoolean(SKIP_DEFAULT_INTERFACE, "Whether to generate default implementations for java8 interfaces", skipDefaultInterface));
cliOptions.add(CliOption.newBoolean(REACTIVE, "wrap responses in Mono/Flux Reactor types (spring-boot only)", reactive));
124
127
cliOptions.add(newCliOption(RESPONSE_WRAPPER, "wrap the responses in given type (Future,Callable,CompletableFuture,ListenableFuture,DeferredResult,HystrixCommand,RxObservable,RxSingle or fully qualified type)"));
0 commit comments