我想要使用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。 –