-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
Resource bundles defined in multiple modules are not merged #26712
Comments
I hope the government can fix the problem and release a new version of SpringBoot as soon as possible. Thank you. |
@LingCai2001 sorry but I am not sure I understood the problem you're describing. Can you please share a small sample that we can run ourselves (no screenshot or code in text please)? You can do so by attaching a zip to this issue or sharing a link to a GitHub repo. Thank you! |
This comment has been minimized.
This comment has been minimized.
BugTest.zip |
@LingCai2001 thanks for the feedback and the samples. I understand what you're trying to do now. The reference documentation states that:
There's no such thing as merging multiple resource bundle files in the classpath. If you remove the resource bundle in your Having said all of that, I was a bit surprised that it wasn't more prominent in the documentation. @jhoeller, what do you think? Have I missed something? |
@snicoll Thank you. I see what you mean; My suggestion is that you can extend one more class to merge resource packages in multiple projects. |
This comment has been minimized.
This comment has been minimized.
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
@jhoeller and I discussed and we have no intention of supporting the use case you've described as we're delegating to |
I found a problem loading the internationalized resource file. When I need to load international resource files in multiple jar packages, org.springframework.boot.autoconfiguration.context.MessageSourceAutoConfiguration, which is automatically assembled by springboot, can't be loaded for me. I think it's an error because of module reuse in development; What do you say?
Remarks:
SpringBootVersion: 2.5.0
The text was updated successfully, but these errors were encountered: