码迷,mamicode.com
首页 > 其他好文 > 详细

【报错】Validation failed for object='userLogin'. Error count: 1

时间:2019-12-07 16:25:35      阅读:493      评论:0      收藏:0      [点我收藏+]

标签:fail   ida   利用   mic   inter   log   label   png   binding   

提交表单之后:

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Sat Dec 07 14:56:03 CST 2019
There was an unexpected error (type=Internal Server Error, status=500).
Validation failed for object=‘userLogin‘. Error count: 1
 
解决方法:

利用BindingResult对象获取参数错误字段和参数错误信息

加上红框里面的信息,不进行处理,也是可以的。

 

技术图片

 

 

参考一个一个关于bindingResult的使用方法:

https://www.cnblogs.com/NeverCtrl-C/p/8185576.html

 

 

【报错】Validation failed for object='userLogin'. Error count: 1

标签:fail   ida   利用   mic   inter   log   label   png   binding   

原文地址:https://www.cnblogs.com/christy99cc/p/12001733.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!