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

提交表单之后:

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

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

时间: 2024-11-10 13:22:00

【报错】Validation failed for object='userLogin'. Error count: 1的相关文章

spring boot 表单的实体提交错误:Validation failed for object='book'. Error count: 2

一:错误信息 二:解决方法 在实体后加BindingResult 三:参考链接 http://stackoverflow.com/questions/30297719/cannot-get-validation-working-with-spring-boot-and-thymeleaf spring boot 表单的实体提交错误:Validation failed for object='book'. Error count: 2

opatch apply 报错 OPatch failed with error code 73

1.执行opatch apply 报错 OPatch failed with error code 73 [[email protected]_11g 14275605]$ /opt/oracle/product/db_1/OPatch/opatch apply ./ Oracle Interim Patch Installer version 11.2.0.3.0 Copyright (c) 2012, Oracle Corporation.  All rights reserved. Ora

win10安装ubuntu系统,报错WslRegisterDistribution failed with error: 0x8007019e

原文链接:https://blog.csdn.net/qq_33033367/article/details/82820983 在windows应用商店安装ubuntu系统,报错WslRegisterDistribution failed with error: 0x8007019e 1.报错: Installing, this may take a few minutes... Installation Failed! Error: 0x8007019e Press any key to co

解决window7 x64位Anaconda启动报错:AttributeError: '_NamespacePath' object has no attribute 'sort'

最近论文需要用到python做数据分析,python语法简单,但是Windows下安装第三方包恶心的要命,statsmodels用pip死活安装不上,网上查了说包相互依赖windows下的pip不能下载全,还有好几个其他的统计包也是如此,整晕了算. 看网上有些python大牛推荐Anaconda,可以解决包的问题,于是卸载本地的python,从官网上下了个Anconda玩玩,结果遇到新问题. 问题如下: An unexpected error has occurred. Please consi

appium在android 7.0真机上运行报错command failed shell:............ps:'uiautomator"的解决方式

appium版本:1_4_16 在CSDN中找到相关解决的方案,根据此解决方案顺利的解决了让人惆怅的问题,再次记录. 1.找到appium安装目录下的adb.js文件,目录为:Appium\node_modules\appium\node_modules\appium-adb\lib 2.打开adb.js,可使用notepad++编辑器等打开文件(说明:在修改代码的时候先注释掉以前的代码,并且添加自己容易识别的标记,以防出错后还有回旋的余地,或者将代码备份也可行),找到如下代码: ADB.pro

(转)启动网卡报错(Failed to start LSB: Bring up/down networking )解决办法总结

启动网卡报错(Failed to start LSB: Bring up/down networking )解决办法总结 原文:http://blog.51cto.com/11863547/1905929 http://blog.csdn.net/debimeng/article/details/74296152?utm_source=itdadao&utm_medium=referral Failed to start LSB: Bring up/down networking 遇到这个错误好

nagios报错:./stdio.h:456:1: error: 'gets' undeclared here (not in a function)

[[email protected] nagios-plugins-1.4.16]# ./configure [[email protected] nagios-plugins-1.4.16]# make  mv -f .deps/full-write.Tpo .deps/full-write.Po gcc -DHAVE_CONFIG_H -I. -I..  -I../intl   -g -O2 -MT localcharset.o -MD -MP -MF .deps/localcharset.

mac编译openssl扩展报错 openssl.c:44:10: fatal error: 'openssl/evp.h' file not found

解决办法 brew link openssl --force 然后 ./configure --with-openssl --with-php-config=/usr/local/php/bin/php-config make sudo make install mac编译openssl扩展报错 openssl.c:44:10: fatal error: 'openssl/evp.h' file not found

VS2010报错无法编译:LINK : fatal error LNK1123: failure during conversion to COFF: file invalid

win7 64位 专业版 + vs2010 从vc6.0下转过来的一个项目,突然遇到这个问题. 解决方案: 用C:\Windows\winsxs\x86_netfx-cvtres_for_vc_and_vb_b03f5f7f11d50a3a_6.1.7600.16385_none_ba476986f05abc65下面的cvtres.exe替换掉C:\Program Files\Microsoft Visual Studio 10.0\VC\bin的cvtres.exe ,就可以了. VS2010