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
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,13 +93,13 @@ These options may be applied as additional-properties (cli) or configOptions (pl
93
93
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.||true|
94
94
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.||true|
95
95
|sourceFolder|source folder for generated code||src/main/java|
96
-
|springHttpClientAdapter|Allows users to choose between different HTTP client implementations for Spring HTTP interfaces (`web-client`, `rest-client`, `rest-template`).||web-client|
97
96
|testOutput|Set output folder for models and APIs tests||${project.build.directory}/generated-test-sources/openapi|
98
97
|title|server title name or client service name||OpenAPI Spring|
99
98
|unhandledException|Declare operation methods to throw a generic exception and allow unhandled exceptions (useful for Spring `@ControllerAdvice` directives).||false|
100
99
|useBeanValidation|Use BeanValidation API annotations||true|
101
100
|useEnumCaseInsensitive|Use `equalsIgnoreCase` when String for enum comparison||false|
102
101
|useFeignClientUrl|Whether to generate Feign client with url parameter.||true|
102
+
|useHttpServiceProxyFactoryInterfacesConfiguration|Generate HttpInterfacesAbstractConfigurator based on an HttpServiceProxyFactory instance (as opposed to a WebClient instance, when disabled) for generating Spring HTTP interfaces. Requires spring-web 6.1+.||false|
103
103
|useJakartaEe|whether to use Jakarta EE namespace instead of javax||false|
104
104
|useOneOfInterfaces|whether to use a java interface to describe a set of oneOf options, where each option is a class that implements the interface||false|
105
105
|useOptional|Use Optional container for optional parameters||false|
Copy file name to clipboardExpand all lines: docs/generators/spring.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,13 +86,13 @@ These options may be applied as additional-properties (cli) or configOptions (pl
86
86
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.||true|
87
87
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.||true|
88
88
|sourceFolder|source folder for generated code||src/main/java|
89
-
|springHttpClientAdapter|Allows users to choose between different HTTP client implementations for Spring HTTP interfaces (`web-client`, `rest-client`, `rest-template`).||web-client|
90
89
|testOutput|Set output folder for models and APIs tests||${project.build.directory}/generated-test-sources/openapi|
91
90
|title|server title name or client service name||OpenAPI Spring|
92
91
|unhandledException|Declare operation methods to throw a generic exception and allow unhandled exceptions (useful for Spring `@ControllerAdvice` directives).||false|
93
92
|useBeanValidation|Use BeanValidation API annotations||true|
94
93
|useEnumCaseInsensitive|Use `equalsIgnoreCase` when String for enum comparison||false|
95
94
|useFeignClientUrl|Whether to generate Feign client with url parameter.||true|
95
+
|useHttpServiceProxyFactoryInterfacesConfiguration|Generate HttpInterfacesAbstractConfigurator based on an HttpServiceProxyFactory instance (as opposed to a WebClient instance, when disabled) for generating Spring HTTP interfaces. Requires spring-web 6.1+.||false|
96
96
|useJakartaEe|whether to use Jakarta EE namespace instead of javax||false|
97
97
|useOneOfInterfaces|whether to use a java interface to describe a set of oneOf options, where each option is a class that implements the interface||false|
98
98
|useOptional|Use Optional container for optional parameters||false|
"Generate HttpInterfacesAbstractConfigurator based on an HttpServiceProxyFactory instance (as opposed to a WebClient instance, when disabled) for generating Spring HTTP interfaces. Requires spring-web 6.1+.")
276
+
.defaultValue("false")
297
277
);
298
278
supportedLibraries.put(SPRING_BOOT, "Spring-boot Server application.");
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-http-interface/README.mustache
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,13 @@ By using the [OpenAPI-Spec](https://openapis.org), you can easily generate an AP
9
9
This is an example of building API stub interfaces in Java using the Spring framework.
10
10
11
11
The stubs generated can be used in your existing Spring application for HTTP integration with other REST services
12
-
To use auto-generated interfaces you have to create your own configuration which extends default abstract configurator & provide `WebClient` instance via constructor
12
+
To use auto-generated interfaces you have to create your own configuration which extends default abstract configurator & provide `{{httpInterfacesConfiguratorDependency}}` instance via constructor
13
13
```java
14
14
@Configuration
15
15
public class MyConfiguration extends {{configPackage}}.HttpInterfacesAbstractConfigurator {
16
16
17
-
public MyConfiguration(WebClient myWebClient) { // separately created WebClient instance
18
-
super(myWebClient);
17
+
public MyConfiguration({{httpInterfacesConfiguratorDependency}} my{{httpInterfacesConfiguratorDependency}}) { // separately created {{httpInterfacesConfiguratorDependency}} instance
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-http-interface/httpInterfacesRestTemplateConfiguration.mustache
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-http-interface/httpServiceProxyFactoryInterfacesConfiguration.mustache
0 commit comments