You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
I'm moving to spring boot 3, generating the interface only classes, all annotations work correctly.
When starting in spring the class is scanned, but for the generated interfaces with default methods
spring logs ::
o.s.c.a.ClassPathBeanDefinitionScanner : Ignored because not a concrete top-level class:
I've tested with spring boot versions 3.0.x 3.1.x and 3.2.x and the same issue appears
openapi-generator version
7.4.0
Generation Details
org.openapitools
openapi-generator-maven-plugin
7.4.0
generate
${project.build.directory}/classes/contract/contract.yaml
spring
true
ApiUtil.java
You need to implement your interfaces, and annotate them with @RestController
you don't need any other annotation.
The default interface methods sadly will be ignored.
The text was updated successfully, but these errors were encountered:
Bug Report Checklist
Description
I'm moving to spring boot 3, generating the interface only classes, all annotations work correctly.
When starting in spring the class is scanned, but for the generated interfaces with default methods
spring logs ::
o.s.c.a.ClassPathBeanDefinitionScanner : Ignored because not a concrete top-level class:
I've tested with spring boot versions 3.0.x 3.1.x and 3.2.x and the same issue appears
openapi-generator version
7.4.0
Generation Details
org.openapitools openapi-generator-maven-plugin 7.4.0 generate ${project.build.directory}/classes/contract/contract.yaml spring true ApiUtil.javaSteps to reproduce
Generate the interface as normal from the contract (my generator config is above)
enable spring logging to see
logging.level.org.springframework.core.io.support=DEBUG
logging.level.org.springframework.context.annotation=DEBUG
Watch the interface be ignored.
Related issues/PRs
none I can see
Suggest a fix
You need to implement your interfaces, and annotate them with @RestController
you don't need any other annotation.
The default interface methods sadly will be ignored.
The text was updated successfully, but these errors were encountered: