Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java UnsatifiedPendencyException:创建名为';会计控制员';_Java_Spring_Spring Mvc - Fatal编程技术网

Java UnsatifiedPendencyException:创建名为';会计控制员';

Java UnsatifiedPendencyException:创建名为';会计控制员';,java,spring,spring-mvc,Java,Spring,Spring Mvc,我一直在关注使用Spring进行web开发的教程视频 是完整的源代码 以下是我向发送get请求时遇到的错误 localhost:8080/basic web app/rest/accounts 在文件mvc dispatcher servlet.xml中,您将用于扫描的包指定为: <context:component-scan base-package="app.rest.mvc"/> 然后Spring将找到应用程序的所有组件。您应该编辑问题并粘贴代码(而不是链接)这将生成错误和堆

我一直在关注使用
Spring
进行web开发的教程视频

是完整的源代码

以下是我向发送
get
请求时遇到的错误

localhost:8080/basic web app/rest/accounts


在文件
mvc dispatcher servlet.xml
中,您将用于扫描的包指定为:

<context:component-scan base-package="app.rest.mvc"/>

然后Spring将找到应用程序的所有组件。

您应该编辑问题并粘贴代码(而不是链接)这将生成错误和堆栈跟踪以获取帮助。看起来您的服务类
AccountServiceImpl
未被
Spring
管理/发现。请尝试在
mvc dispatcher servlet.xml
中修复您的
上下文:组件扫描。
<context:component-scan base-package="app.rest.mvc, app.core"/>