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

Bean property overrides not working on app startup #9133

Closed
pledbrook opened this issue Jul 26, 2015 · 1 comment
Closed

Bean property overrides not working on app startup #9133

pledbrook opened this issue Jul 26, 2015 · 1 comment

Comments

@pledbrook
Copy link
Contributor

I'm assuming that the bean property overrides mechanism is still supposed to work with Grails 3, but it definitely doesn't on startup. This renders a rather useful technique, configuration injection, dead. Interestingly, I noticed that configuration injection on controllers works after modifying the controller so it's reloaded.

I'll try to attach a bug report project, although I'm not sure how to do it in GitHub.

@pledbrook pledbrook added the relates-to: v3 Grails 3 label Jul 26, 2015
@pledbrook
Copy link
Contributor Author

Tested in Grails 3.0.3. I've put the bug report project on Dropbox. Simply unpack and do a run-app. I'm seeing it print out ">>>> null" because MyBeans name property is not being initialised from the value specified in application.groovy via bean property overrides.

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

No branches or pull requests

2 participants