springfox-grails-integration
springfox-grails-integration copied to clipboard
grails 3.3.1
current ,can not use in grails 3.3.1, is there any solution?
Yes, planning to work on it in the next couple weeks
any progress?
Yeah. I'm currently stuck at a point where Im no as familiar with grails. Im getting a message asking me to first initialize the gorm context before I can introspect domain classes. If you could provide insight that will be much appreciated.
may be you can do something in plugin eg: void doWithApplicationContext() { // TODO Implement post initialization spring config (optional) }
Not very familiar with grails internals, but thanks for the tip. I pushed a PR #22 with work in progress to solicit help. I'll look into it for sure.
You need to start the plugin after GORM has been initialized. The solution is to set autostartup to false using this stanza in application.yaml:
springfox:
documentation:
auto-startup : false
In your Bootstrap.groovy, get a bean reference to the plugin and start it from init.
class BootStrap {
// springfox bean
DocumentationPluginsBootstrapper documentationPluginsBootstrapper;
def init = { servletContext ->
// Lets start springfox bean
documentationPluginsBootstrapper.start()
// Other initialization code
//
//
}
def destroy = {
}
}
There is a PR #23, I plan to merge in soon. Thanks for your suggestion!
Any update on getting that PR merged?
@dilipkrish Do you have plan to merge the PR#23 anytime soon?
Same question, Any plans to merge PR #23?