IDEA使用Spring中错误no matching constructor found in class

使用Spring时用构造注入值,发现xml文件一直报错:(但是用注入方式正确无误

错误原因:

User中没有写有参构造方法。加上构造方法后即可。

猜你喜欢

转载自blog.csdn.net/SwaeLeeUknow/article/details/107958616
今日推荐