Skip to content
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

grails 3.3.1 #21

Open
ibmsoft opened this issue Nov 2, 2017 · 10 comments
Open

grails 3.3.1 #21

ibmsoft opened this issue Nov 2, 2017 · 10 comments
Labels

Comments

@ibmsoft
Copy link

ibmsoft commented Nov 2, 2017

current ,can not use in grails 3.3.1, is there any solution?

@dilipkrish dilipkrish added the bug label Nov 13, 2017
@dilipkrish
Copy link
Member

Yes, planning to work on it in the next couple weeks

@ibmsoft
Copy link
Author

ibmsoft commented Dec 27, 2017

any progress?

@dilipkrish
Copy link
Member

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.

@ibmsoft
Copy link
Author

ibmsoft commented Jan 3, 2018

may be you can do something in plugin
eg:
void doWithApplicationContext() {
// TODO Implement post initialization spring config (optional)
}

@dilipkrish
Copy link
Member

dilipkrish commented Jan 3, 2018

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.

@krishnact
Copy link

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 = {
    }
}

@dilipkrish
Copy link
Member

There is a PR #23, I plan to merge in soon. Thanks for your suggestion!

@TabbyC
Copy link

TabbyC commented Dec 13, 2018

Any update on getting that PR merged?

@hemantseth0210
Copy link

@dilipkrish Do you have plan to merge the PR#23 anytime soon?

@gabivis
Copy link

gabivis commented Oct 9, 2019

Same question, Any plans to merge PR #23?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants