-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG][JAVA][SPRING] Configuration Bean names collide #17737
Labels
Comments
Open
5 tasks
Hi, could you please provide a concrete example how to reproduce the problem? Thanks! |
Hi, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report Checklist
Description
Spring defaults to naming many beans by either class or method names. When using multiple openapi.yaml files (e.g. for a versioning strategy), these names can collide and fail start up.
In my case the occurrence of multiple EnumConverterConfiguration's produces the issue.
Suggest a fix
Change @configuration Annotation in converter.mustache fixes the issue:
@Configuration(value = "{{configPackage}}.enumConverterConfiguration")
Fix is implemented in PR: #17738
The text was updated successfully, but these errors were encountered: