我有两个项目:A 和 B。A 使用 B 功能,因此 B 作为 maven 依赖项添加到 A。在 BI 中有下一个 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>
在 AI 中有文件夹 /META-INF/i18n/ 和我的道具文件,我使用这些文件,但我还需要使用项目 B 中的道具文件。主要问题:如何在项目 A 中使用来自 A 和 B 的道具文件最小的变化?