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

严重: 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类中缺少无参构造方法导致的

posted @ 2019-02-20 13:32  慧妃不美  阅读(2099)  评论(0编辑  收藏  举报