【发布时间】:2013-11-05 13:34:56
【问题描述】:
我有两个项目:A 和 B。A 使用 B 功能,因此 B 作为 maven 依赖项添加到 A。在 B 中,我有下一个 locale.xml 文件:
> <?xml version="1.0" encoding="UTF-8"?> <beans > xmlns="http://www.springframework.org/schema/beans" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation=" > http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans.xsd "> > > <!-- ******************** --> > <!-- Internationalization --> > <!-- ******************** --> > <bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource"> > <property name="basenames"> > <list> > <value>/META-INF/i18n/messages</value> > </list> > </property> > <property name="defaultEncoding" value="UTF-8"/> > <property name="cacheSeconds" value="1"/> > </bean> </beans>
在 A 中,我的文件夹 /META-INF/i18n/ 包含我的道具文件,我使用这些文件,但我还需要使用项目 B 中的道具文件。主要问题:如何使用来自 A 的两个道具文件和项目 A 中的 B 更改最少?
【问题讨论】:
标签: java spring maven internationalization