Valid Type Name, BindingResult bindingResult
来源:互联网 发布:微博系统数据库设计 编辑:程序博客网 时间:2024/06/05 04:02
Valid Type Name, BindingResult bindingResult
- 1.Java使用mysql-jdbc连接MySQL出现如下警告:
使用springboot框架进行 新增 和 修改 操作时,页面报错,报错信息如下:
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Tue Oct 17 11:28:57 CST 2017
There was an unexpected error (type=Bad Request, status=400).
Validation failed for object=’user’. Error count: 1
如下图:
解决方法:在方法上加上“@Valid Type Name, BindingResult bindingResult”即可,为什么会这样,原因还不知道,先记下。
补充:在不加后台验证的情况下,如果操作有日期类型的数据,则需要加这个验证,没有日期类型的就不需要加,原因暂时未知。
阅读全文
0 0
- Valid Type Name, BindingResult bindingResult
- bindingResult
- 关于BindingResult
- BindingResult参数,必须紧跟在@Valid参数之后。
- Spring错误返回BindingResult
- SpringMVC BindingResult例子
- spring3 页面form标签 报错 Neither BindingResult nor plain target object for bean name "company"
- Neither BindingResult nor plain target object for bean name 'command' available as request attribute
- spring MVC做form提交Neither BindingResult nor plain target object for bean name 'command' available
- spring3 页面form标签 报错 Neither BindingResult nor plain target object for bean name "company"
- Neither BindingResult nor plain target object for bean name 'user' available
- spring3 页面form标签 报错 Neither BindingResult nor plain target object for bean name "company"
- Neither BindingResult nor plain target object for bean name 'mailor' available as request attribute
- Neither BindingResult nor plain target object for bean name 'subjectDict' available as request attri
- Neither BindingResult nor plain target object for bean name 'member' available as request attribute
- Neither BindingResult nor plain target object for bean name 'TeachLab' available as request attribut
- Neither BindingResult nor plain target object for bean name 'internationalMakePrice' available as re
- Neither BindingResult nor plain target object for bean name 'command' available as request attribute
- 1、MVC运行原理
- 搭建图片服务器
- JVM虚拟机运行时数据区域的理解
- Python判断文件和文件夹是否存在的方法
- 外卖管理系统--C语言课设
- Valid Type Name, BindingResult bindingResult
- jQuery实现字符串全部替换的方法
- angularjs简单demo(转载,原网址找不到了)
- [日推荐]『饿了么外卖服务』饿了么官方小程序,无需下载安装!
- 让远程主机可以通过网络访问sshd服务
- iOS 堆和栈的区别?
- the surface has been released
- 如何使用ADO助手生成数据库代码
- 前端-css样式 外边距(margin)和内边距(padding)