您当前的位置: 首页 >  Java

No default constructor found; nested exception is java.lang.NoSuchMethodException

qq_34412985 发布时间:2020-04-04 16:01:28 ,浏览量:4

类中显示声明有参构造方法后,必选显示声明一个无参构造方法,否则报以下错误:

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.xxx.elasticsearch.util.EsUtil]: No default constructor found; nested exception is java.lang.NoSuchMethodException: com.xxx.elasticsearch.util.EsUtil.()

关注
打赏
1688896170
查看更多评论

qq_34412985

暂无认证

  • 4浏览

    0关注

    1025博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录

0.4051s