Internationalization Service 중 AcceptHeaderLocaleResolver 적용해서 메세지를 다국어로 지원한다.
<filter> <filter-name>encoding-filter</filter-name> <filter-class> org.springframework.web.filter.CharacterEncodingFilter </filter-class> <init-param> <param-name>encoding</param-name> <param-value>UTF-8</param-value> </init-param> </filter> <filter-mapping> <filter-name>encoding-filter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
<bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource"> <property name="basenames"> <list> <value>classpath:/message/message-common</value> <value>classpath:/message/egov-message-cvpl</value> </list> </property> <property name="cacheSeconds"> <value>60</value> </property> </bean>
leftmenu.title.userMng=사용자관리
leftmenu.title.userMng=User Management
<spring:message code="leftmenu.title.userMng"/>