I am using this in my application config to specify where to get my messages
<bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
<property name="basenames" value="WEB-INF/properties/messages"/>
<property name="defaultEncoding" value="UTF-8"/>
</bean>
How do i declare a bean same like this which can be accessible to my java class codes
You can use this one, instead of creating your own, via: