File tree Expand file tree Collapse file tree
modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-http-interface Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /**
2+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) ({ {{generatorVersion} }}).
3+ * https://openapi-generator.tech
4+ * Do not edit the class manually.
5+ */
6+ package { {configPackage} };
7+
8+ { {#apiInfo} }
9+ { {#apis} }
10+ import { {apiPackage} }.{ {classname} };
11+ { {/apis} }
12+ { {/apiInfo} }
13+
14+ import org.springframework.context.annotation.Bean;
15+ import org.springframework.web.service.invoker.HttpServiceProxyFactory;
16+
17+ public abstract class HttpInterfacesAbstractConfigurator {
18+
19+ private final HttpServiceProxyFactory factory;
20+
21+ public HttpInterfacesAbstractConfigurator(final HttpServiceProxyFactory factory) {
22+ this.factory = factory;
23+ }
24+
25+ { {#apiInfo} }
26+ { {#apis} }
27+ @Bean(name = "{ {configPackage} }.HttpInterfacesAbstractConfigurator.{ {classVarName} }")
28+ { {classname} } { {classVarName} }HttpProxy() {
29+ return factory.createClient({{classname} }.class);
30+ }
31+
32+ { {/apis} }
33+ { {/apiInfo} }
34+
35+ }
Original file line number Diff line number Diff line change 8989 <version >0.2.9</version >
9090 </dependency >
9191 { {/openApiNullable} }
92- { {#lombok} }
93- <dependency >
94- <groupId >org.projectlombok</groupId >
95- <artifactId >lombok</artifactId >
96- <optional >true</optional >
97- </dependency >
98- { {/lombok} }
9992 { {#useJspecify} }
10093 <dependency >
10194 <groupId >org.jspecify</groupId >
10295 <artifactId >jspecify</artifactId >
10396 <version >1.0.0</version >
10497 </dependency >
10598 { {/useJspecify} }
99+ { {#lombok} }
100+ <dependency >
101+ <groupId >org.projectlombok</groupId >
102+ <artifactId >lombok</artifactId >
103+ <optional >true</optional >
104+ </dependency >
105+ { {/lombok} }
106106 <dependency >
107107 <groupId >org.springframework.boot</groupId >
108108 <artifactId >spring-boot-starter-test</artifactId >
You can’t perform that action at this time.
0 commit comments