Spring reloadable resource file
Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Linked Related 4. Hot Network Questions. Question feed. Post a Comment. I start with the hard way first, but in these examples you must need some environmental things: My ResourcesBundle. My applicationContext. You must define a bean like this in the applicationContext.
We need an extra class to create bean instance. And here we go: Here is the ApplicationContextProvider. This means its trying to look for the french version of the application. If it cant find the french properties, it should fall back to the default application. The reason it is looking for the french props is to do with a locale settings somewhere in you app. Could be from browser, JVM, application. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?
Collectives on Stack Overflow. Learn more. Asked 9 years, 4 months ago. Active 9 years, 4 months ago. US but it is not the right way can you please have a look. This is actually very simple. This mean that it wont reload because it is cached forever. I have just updated an answer. Just tested this and it is working. Remember one thing you need to refresh page to reload messages.
Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.
0コメント