I configures my appstrings.properties/code> file which contained strings related tomes used by my application. 我的发言有两个主题。 这两份文件都有自己的<条码>,可在
和WEB-INF/strings/theme2/appstrings
上查阅。 一 具体财产主题 姓名见汇号。
这里是我的春季议事文件:
<context:property-placeholder location="file:///${config.properties}" />
...
<bean id="messageSource"
class="org.springframework.context.support.ResourceBundleMessageSource"
p:basenames="WEB-INF/strings/theme1/appstrings" />
Right now all my app strings are coming from WEB-INF/strings/theme1/appstrings.properties file. How can I make it dynamic. i.e. when I change themeName propperty to theme2 it should get string from WEB-INF/strings/theme2/appstrings.properties