* remove @RequestMapping from the apiController.mustache file and add it to the api.mustache file * move the defaultBasePath.mustache file in src/main/resources/JavaSpring so that it commun with all Spring server-side libraries (spring-boot, spring-mvc). The value of default context path is the value of contextPath variable. * added a unit test to verify it * update the outputDir variable to samples/server/petstore/spring-stubs in the bin/configs/spring-stubs.yaml file because it generates Spring server-side classes. And not on the client-side as the output directory seemed to suggest. * Results of "generate-samples.sh bin/configs/spring*" command * Remove default value of url in @FeignClient * resolve conflicts with origin/master * merge remote/master into branch * fix samples after a merge with master * delete the directory samples/client/petstore/spring-stubs because it moved to samples/openapi3/... * add samples/client/petstore/spring-stubs just for the CI build (normally it is unnecessary)) * delete 3 kotlin class files commited by error in samples/server/petstore/kotlin-springboot and samples/server/petstore/kotlin-springboot-reactive * Update the unit test SpringCodegenTest.doAnnotateDatesOnModelParameters because one more annotation is generated (@RequestMapping) Co-authored-by: rpruvost <rpruvost@ITEM-S78402.emea.msad.sopra> Co-authored-by: rpruvost <rpruvost@ITEM-S78402> Co-authored-by: rpruvost <rpruvost>
OpenAPI generated server
Spring Boot Server
Overview
This server was generated by the OpenAPI Generator project. By using the OpenAPI-Spec, you can easily generate a server stub. This is an example of building a OpenAPI-enabled server in Java using the SpringBoot framework.
The underlying library integrating OpenAPI to Spring Boot is springfox. Springfox will generate an OpenAPI v2 (fka Swagger RESTful API Documentation Specification) specification based on the generated Controller and Model classes. The specification is available to download using the following url: http://localhost:80/v2/api-docs/
HEADS-UP: Springfox is deprecated for removal in version 6.0.0 of openapi-generator. The project seems to be no longer maintained (last commit is of Oct 14, 2020). It works with Spring Boot 2.5.x but not with 2.6. Spring Boot 2.5 is supported until 2022-05-19. Users of openapi-generator should migrate to the springdoc documentation provider which is, as an added bonus, OpenAPI v3 compatible.
Start your server as a simple java application Change default port value in application.properties