[color=olive]mess.properties[/color]
welcome=welcome
[color=olive]mess_zh_CN.properties[/color]
welcome=欢迎
[color=olive]mess_en_US.properties[/color]
welcome=(US)welcome
[color=olive]applicationContext.xml[/color]
[color=olive]页面标签[/color]
welcome=welcome
[color=olive]mess_zh_CN.properties[/color]
welcome=欢迎
[color=olive]mess_en_US.properties[/color]
welcome=(US)welcome
[color=olive]applicationContext.xml[/color]
<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
<property name="basenames">
<list><!-- 配置文件名 -->
<value>mess</value>
</list>
</property>
</bean>
[color=olive]页面标签[/color]
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<spring:message code="welcome"/>