ReloadableResourceBundleMessageSource를 사용하시면 됩니다.--
Google 그룹스 'Korea Spring User Group' 그룹에 가입했으므로 본 메일이 전송되었습니다.
웹에서 이 토론을 보려면 https://groups.google.com/d/msg/ksug/-/7OQgN3Yli_cJ을 (를) 방문하세요.
이 그룹에 게시하려면 ks...@googlegroups.com(으)로 이메일을 보내세요.
그룹에서 탈퇴하려면 ksug+uns...@googlegroups.com로 이메일을 보내주세요.
더 많은 옵션을 보려면 http://groups.google.com/group/ksug?hl=ko에서 그룹을 방문하세요.
저같은 경우 org.apache.commons.configuration.PropertiesConfiguration 을 활용하여 처리하였습니다.
구체적으로 예를 들면
<bean id="runtimeProperties"
class="org.apache.commons.configuration.PropertiesConfiguration">
<constructor-arg type="java.lang.String"
value="#{configProperties['runtime.properties.path']}" />
<property name="reloadingStrategy" ref="reloadingStrategy" />
</bean>
<bean id="reloadingStrategy"
class="org.apache.commons.configuration.reloading.FileChangedReloadingStrategy"
/>
@Component
public class RuntimePropertiesUtil {
@Autowired
private PropertiesConfiguration runtimeProperties;
public String getApilogTracekey() {
return (String)runtimeProperties.getProperty("apilog.tracekey");
}
}
위와같이 선언하신 후 필요한 곳에서 RuntimePropertiesUtil 을 Autowired해서 사용하는 방식으로 처리했습니다.
2012년 7월 19일 오후 1:16, Sungchul Park <gyu...@gmail.com>님의 말: