Failed to instantiate No default constructor found; nested exception is java.lang.NoSuchMethodExcept
从网页接受参数,参数多的情况下一般会定义一个类,来装这些参数,比如UserParam这个类就是装网页里面转过来的
id、username、telephone等信息。但是会发现在修改的时候会报如下错误。
报错信息如下:
org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.mmall.param.UserParam]: No default constructor found; nested exception is java.lang.NoSuchMethodException:com.mmall.param.UserParam.<init>()
解决办法:
把UserParam里面的@Builder注解去掉。
@Getter
@Setter
@Builder //这里的@Builder一定要去掉。否则在修改的时候会失败
public class UserParam {...}
Failed to instantiate No default constructor found; nested exception is java.lang.NoSuchMethodExcept相关推荐
- springmvc运行时,Failed to read candidate component class;nested exception is java.lang.IllegalArgument
问题一.springmvc运行时,Failed to read candidate component class:nested exception is java.lang.IllegalArgum ...
- nested exception is java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$Refle
在Spring AOP实现时调试出现nested exception is java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/Ref ...
- 项目启动时报错Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError...
报错: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'objectMa ...
- 异常记录: Handler dispatch failed; nested exception is java.lang.NoSuchMethodError
异常记录: Handler dispatch failed; nested exception is java.lang.NoSuchMethodError 参考文章: (1)异常记录: Handle ...
- 【报错笔记】数据类型转换时报错:Request processing failed;nested exception is java.lang.NumberFormatException:...
数据类型转换时报错:Request processing failed;nested exception is java.lang.NumberFormatException:For input St ...
- Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: org/dom4j/io/SAXReader
Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: org/dom4j/io/SAXReader ...
- Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: com/po/IdCard
报错内容: Unsatisfied dependency expressed through field 'personDao'; nested exception is org.springfram ...
- Handler dispatch failed; nested exception is java.lang.OutOfMemoryError: Compressed class space
目录 主要得报错信息如下: 解决办法 主要得报错信息如下: 2022-05-16 07:56:47.702|ERROR|http-nio-8089-exec-11|46|c.g.d.npp.web.c ...
- 解决Hander dispatch failed;nested exception is java .lang. AbstractMethodError:Method com/mchange/v2/c
解决Hander dispatch failed;nested exception is java .lang. AbstractMethodError:Method com/mchange/v2/c ...
最新文章
- 2015最流行的Android组件、工具、框架大全
- request和response一览
- 秒拍副总裁陈太锋:如何通过数据分析提升有效播放量
- go语言游戏编程-Ebiten使用矩阵实现对图的缩放和移动
- 使用requireJS的shim參数,完毕jquery插件的载入
- [2011山东ACM省赛] Identifiers(模拟)
- C#调用word打印
- 在双系统(Windows与Ubuntu)下删除Ubuntu启动项
- python中多层装饰器使用步骤
- 划重点!DWS开发的五大要点
- 2019.1.23 01迷宫
- 416亿元公有云市场:阿里173亿、腾讯50亿、华为35亿
- 硅谷新一代媒体巨头Mode Media突然宣布关闭
- Hive 复杂数据类型之map
- [开源]在iOS上实现Android风格的控件Toast
- GlusterFS卷的种类
- YetAnotherKeyDisplayer(YAKD屏幕上显示键盘操作)源码下载及编译(Win10,VS2022)
- 用html5做京东登录框,使用HTML5搭建京东登录界面(二)
- mpchart点击_MPAndroidChart 中BarChart使用遇到问题,求大神们指教。
- mysql中插入数据时Duplicate entry ‘‘ for key ‘PRIMARY‘的解决方案
热门文章
- 机器学习 —— 基础整理(六)线性判别函数:感知器、松弛算法、Ho-Kashyap算法...
- 3>2,看看U.3升级了啥
- 4月28号开始报名英语四六级了
- 16进制数与浮点数转换
- 在vue-cli中使用vue-router的学习笔记
- 硬改无人直播系统-使用小技巧
- frida sekiro 实现 taobao sgmain 70102 远程 rpc 调用
- php 定位_PHP进阶学习之Geo的地图定位算法详解
- 转-业务流程图的绘制流程分享(一)
- OpenCV或yolov4使用IPCamera进行目标检测——真正的随时检测