更新时间:2023-02-18 22:18:15
这与我之前遇到的类似,此文章帮助我。
Looks like this is similar to what I faced earlier, this post helped me.
自定义在绑定时失败的错误消息。查看此链接了解更多有关在应用程序上下文中创建MessageSource bean的信息,并创建一个messages.properties资源包:
To customize the error messages from failing at the bind time. Look this link for more details on creating a MessageSource bean in your application context and create a messages.properties resource bundle :