首页 > 编程语言 > 详细

java.lang.NoSuchMethodException: .<init>()

时间:2019-02-20 13:46:01      阅读:2306      评论:0      收藏:0      [点我收藏+]

严重: Servlet.service() for servlet [springmvc] in context with path [/SpringMvc-1] threw exception [Request processing failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [cn.wth.base.Bean.Pojo.User]: No default constructor found; nested exception is java.lang.NoSuchMethodException: cn.wth.base.Bean.Pojo.User.<init>()] with root cause
java.lang.NoSuchMethodException: cn.wth.base.Bean.Pojo.User.<init>()

 

 

因为User类中缺少无参构造方法导致的

java.lang.NoSuchMethodException: .<init>()

原文:https://www.cnblogs.com/wth21-1314/p/10406032.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!