OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.46k stars 6.49k forks source link

[REQ] [kotlin-spring] Spring request mapping mode #18884

Closed pstorch closed 3 months ago

pstorch commented 3 months ago

I stumbled upon an issue with the RequestMapping annotations on the Api interfaces and ApiController classes. Spring Boot doesn't load my controllers correctly. The beans are instantiated but the HandlerMapping.Mappings is not recognizing the controllers. When I remove the @RequestMapping("\${api.base-path:}") annotation it works.

Can we have the same requestMappingMode option for kotlin-spring as for the java-spring generator? Like: https://github.com/OpenAPITools/openapi-generator/pull/13838