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

MicronautApplicationContext not inheriting parent propertySources #53

Open
zyro23 opened this issue Mar 31, 2020 · 2 comments
Open

MicronautApplicationContext not inheriting parent propertySources #53

zyro23 opened this issue Mar 31, 2020 · 2 comments
Labels
type: bug Something isn't working

Comments

@graemerocher
Copy link
Contributor

Potentially, if you wish to send a PR for this, contributions welcome!

zyro23 added a commit to zyro23/micronaut-spring that referenced this issue Mar 31, 2020
@zyro23
Copy link
Author

zyro23 commented Mar 31, 2020

i started to give it a shot - see the referenced commit. but at that point, i hit java.lang.UnsupportedOperationException: Method parent not supported:

looks like there, a reverse propertySources merging impl. spring env. -> micronaut env. is needed which is not trivial - at least for me.

also, my original use-case was within a grails app. which means the app main context is supposed to inherit the micronaut context propertySources. it does not look like that is currently supported as well:

maybe GrailsApp can check if the parent micronaut context has another parent and if so, try merging its environment directly. but that would be a grails issue.

if this is going to stall without further contributions from my side, feel free to close as not-supported.
thanks for your feedback!

@graemerocher graemerocher added the type: bug Something isn't working label Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants