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/java-camel.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
77
77
|prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.||false|
78
78
|reactive|wrap responses in Mono/Flux Reactor types (spring-boot only)||false|
79
79
|requestMappingMode|Where to generate the class level @RequestMapping annotation.|<dl><dt>**api_interface**</dt><dd>Generate the @RequestMapping annotation on the generated Api Interface.</dd><dt>**controller**</dt><dd>Generate the @RequestMapping annotation on the generated Api Controller Implementation.</dd><dt>**none**</dt><dd>Do not add a class level @RequestMapping annotation.</dd></dl>|controller|
80
+
|resourceFolder|resource folder for generated resources||src/main/resources|
80
81
|responseWrapper|wrap the responses in given type (Future, Callable, CompletableFuture,ListenableFuture, DeferredResult, RxObservable, RxSingle or fully qualified type)||null|
81
82
|returnSuccessCode|Generated server returns 2xx code||false|
82
83
|scmConnection|SCM connection in generated pom.xml||scm:git:git@github.com:openapitools/openapi-generator.git|
Copy file name to clipboardExpand all lines: docs/generators/spring.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
70
70
|prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.||false|
71
71
|reactive|wrap responses in Mono/Flux Reactor types (spring-boot only)||false|
72
72
|requestMappingMode|Where to generate the class level @RequestMapping annotation.|<dl><dt>**api_interface**</dt><dd>Generate the @RequestMapping annotation on the generated Api Interface.</dd><dt>**controller**</dt><dd>Generate the @RequestMapping annotation on the generated Api Controller Implementation.</dd><dt>**none**</dt><dd>Do not add a class level @RequestMapping annotation.</dd></dl>|controller|
73
+
|resourceFolder|resource folder for generated resources||src/main/resources|
73
74
|responseWrapper|wrap the responses in given type (Future, Callable, CompletableFuture,ListenableFuture, DeferredResult, RxObservable, RxSingle or fully qualified type)||null|
74
75
|returnSuccessCode|Generated server returns 2xx code||false|
75
76
|scmConnection|SCM connection in generated pom.xml||scm:git:git@github.com:openapitools/openapi-generator.git|
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-cloud/clientConfiguration.mustache
public OAuth2RequestInterceptor {{{flow}}}OAuth2RequestInterceptor(final OAuth2AuthorizedClientManager {{{flow}}}AuthorizedClientManager ) {
73
+
return new OAuth2RequestInterceptor(OAuth2AuthorizeRequest.withClientRegistrationId("{{{name}}}{{#lambda.pascalcase}}{{{flow}}}{{/lambda.pascalcase}}")
74
+
.principal( new AnonymousAuthenticationToken( CLIENT_PRINCIPAL_{{#lambda.uppercase}}{{{flow}}}{{/lambda.uppercase}}, CLIENT_PRINCIPAL_{{#lambda.uppercase}}{{{flow}}}{{/lambda.uppercase}}, AuthorityUtils.createAuthorityList( "ROLE_ANONYMOUS" ) ) )
0 commit comments