I have an issue where when I want to run my spring boot application I get told that "Parameter 0 of constructor in my.project.fooController requires a single bean, but 2 were found:
- fooController: defined in file: [path/to/file/fooController]
- my.project.fooController: defined in file: [path/to/file/fooController]"
I don't know how to fix this issue, since both are legit the same file. But I can provide some more information about my setup.
I want to use openApiGenerator in my project, so it generates the api and models from the openApi spec.
The generator creates an fooApi, fooApiController and fooApiDelegate.
I then proceeded to create the fooController class, which implements the fooApiDelegate and override the functions.
However now I have the issue that spring thinks I have 2 beans for some reason, even tho it's only 1. I can't even annotate the class with @Primary because like I said, it's the same class and therefor both would be annotated with @Primary.

just give me a moment