星空网 > 软件开发 > Java

NoSuchMethodException init()

1. Question Description:

SEVERE: Servlet.service() for servlet [dispatcher] in context with path [/newppms] threw exception [Request processing failed;

nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cdv.ppms.web.model.PpmsUser]:

No default constructor found; nested exception is java.lang.NoSuchMethodException: com.cdv.ppms.web.model.PpmsUser.<init>()] with root cause
java.lang.NoSuchMethodException: com.cdv.ppms.web.model.PpmsUser.<init>()
    at java.lang.Class.getConstructor0(Class.java:2902)
    at java.lang.Class.getDeclaredConstructor(Class.java:2066)

2. Analysis:

   As the error message say , default constructor not found.

   It must be create Constructor with parameters but not create the Constructor with no parameters,

   so the default Constructor was covered.

3. Solution:

   Add the default Constructor with no parameters.




原标题:NoSuchMethodException init()

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

跟卖技巧:https://www.goluckyvip.com/tag/3832.html
美国跨境电商避税:https://www.goluckyvip.com/tag/38320.html
美国跨境电商海外仓:https://www.goluckyvip.com/tag/38321.html
美国跨境电商环境分析:https://www.goluckyvip.com/tag/38322.html
美国跨境电商物流:https://www.goluckyvip.com/tag/38325.html
美国跨境通丹尼尔:https://www.goluckyvip.com/tag/38326.html
为啥很多农村都成为了空心村,未来农村该何去何从?:https://www.vstour.cn/a/404252.html
永和街道永岗社区 广州永和开发区永岗社区:https://www.vstour.cn/a/404253.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流