-
Notifications
You must be signed in to change notification settings - Fork 33
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
Configured class: com.foo.reportListener.handler.SpecYamlGetHandler has not been found #61
Comments
Did you include com.foo.reportListener.handler.SpecYamlGetHandler in handler.yml? You need to specify all handler classes in handler.yml so the Dependency Injector can load it during startup. |
Yes its in there, I am simply running the project as generated with no code changes by me. This is what I added to openapi.yaml:
|
@farrukhnajmi I have tried to compile and start the latest https://github.com/networknt/light-example-4j/tree/master/rest/openapi/petstore without any issue. Also, is this class SpecYamlGetHandler your own? I cannot find any reference from our source code. |
It seems that my adding the following in my openapi.yaml caused the problem:
I did this based on the possibly incorrect or misleading docs at: https://doc.networknt.com/style/light-rest-4j/openapi-display/#path-for-specification-display When I take it out all is well. Thanks. |
Using latest master 9dc732f27a46692275ac79a539f3a80b4bbcb05d of lite-codegen I generated a project.
mvn install
The text was updated successfully, but these errors were encountered: