定義它在應用程序上下文
<bean id="responseMessageSource"
class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
<property name="cacheSeconds" value="3"/>
<property name="basename" value="classpath:response_msg" />
<property name="defaultEncoding" value="UTF-8"/>
</bean>
資源文件夾下的定義,很容易
NO_SESSION=SESSION ERROR
NO_PHOTO=The photo with specified id couldn't find
SUCCESSFULL_CRATED_ALBUM=Album has created successfully
ASSIGNED_ALBUM_PHOTO=This photo assigned as your album photo.
SUCCESFULL_UPDATED_ALBUM=Album has updated successfully
SUCCESFULL_UPDATED_PHOTO=Photo has updated successfully
SUCCESFULL_CRATED_IMAGE_DIRECTORY=Image directories created successfully
猜你的問題是否給予了足夠的信息; ) – Bozho 2010-02-05 10:23:02