我想要使用spring驗證器在jsp上顯示錯誤消息的配置,但不使用此配置的message.properties。彈簧驗證程序未使用屬性文件顯示錯誤消息
<bean id="messageSource"
class="org.springframework.context.support.ResourceBundleMessageSource">
<property name="basenames">
<list>
<value>message</value>
</list>
</property>
</bean>
好的,謝謝@Ahmad Alraz。 –