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

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

错误原因:

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

你可能感兴趣的:(问题处理,spring,java,spring,boot)