从网页接受参数,参数多的情况下一般会定义一个类,来装这些参数,比如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相关推荐

  1. 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 ...

  2. 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 ...

  3. 项目启动时报错Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError...

    报错: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'objectMa ...

  4. 异常记录: Handler dispatch failed; nested exception is java.lang.NoSuchMethodError

    异常记录: Handler dispatch failed; nested exception is java.lang.NoSuchMethodError 参考文章: (1)异常记录: Handle ...

  5. 【报错笔记】数据类型转换时报错:Request processing failed;nested exception is java.lang.NumberFormatException:...

    数据类型转换时报错:Request processing failed;nested exception is java.lang.NumberFormatException:For input St ...

  6. 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 ...

  7. 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 ...

  8. 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 ...

  9. 解决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 ...

最新文章

  1. 2015最流行的Android组件、工具、框架大全
  2. request和response一览
  3. 秒拍副总裁陈太锋:如何通过数据分析提升有效播放量
  4. go语言游戏编程-Ebiten使用矩阵实现对图的缩放和移动
  5. 使用requireJS的shim參数,完毕jquery插件的载入
  6. [2011山东ACM省赛] Identifiers(模拟)
  7. C#调用word打印
  8. 在双系统(Windows与Ubuntu)下删除Ubuntu启动项
  9. python中多层装饰器使用步骤
  10. 划重点!DWS开发的五大要点
  11. 2019.1.23 01迷宫
  12. 416亿元公有云市场:阿里173亿、腾讯50亿、华为35亿
  13. 硅谷新一代媒体巨头Mode Media突然宣布关闭
  14. Hive 复杂数据类型之map
  15. [开源]在iOS上实现Android风格的控件Toast
  16. GlusterFS卷的种类
  17. YetAnotherKeyDisplayer(YAKD屏幕上显示键盘操作)源码下载及编译(Win10,VS2022)
  18. 用html5做京东登录框,使用HTML5搭建京东登录界面(二)
  19. mpchart点击_MPAndroidChart 中BarChart使用遇到问题,求大神们指教。
  20. mysql中插入数据时Duplicate entry ‘‘ for key ‘PRIMARY‘的解决方案

热门文章

  1. 机器学习 —— 基础整理(六)线性判别函数:感知器、松弛算法、Ho-Kashyap算法...
  2. 3>2,看看U.3升级了啥
  3. 4月28号开始报名英语四六级了
  4. 16进制数与浮点数转换
  5. 在vue-cli中使用vue-router的学习笔记
  6. 硬改无人直播系统-使用小技巧
  7. frida sekiro 实现 taobao sgmain 70102 远程 rpc 调用
  8. php 定位_PHP进阶学习之Geo的地图定位算法详解
  9. 转-业务流程图的绘制流程分享(一)
  10. OpenCV或yolov4使用IPCamera进行目标检测——真正的随时检测