严重: StandardWrapper.Throwable org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'goodsController' defined in file [D:\eclipse\eclipse-space\pinyougou_parent\pinyou

时间:2024-04-15 00:12:01

严重: StandardWrapper.Throwable org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'goodsController' defined in file [D:\eclipse\eclipse-space\pinyougou_parent\pinyou

由于错误太宽,没法截取完整的,所以不怎么连贯,但是不影响错误的解决。

这个错误是因为service无法自动注入。显示嵌套状态异常。

我就查看了一下我的坐标和配置文件,配置文件的路径和访问地址都是正确的,然后看见坐标的时候忽略了一件事,

在service层引入注释时,service注释有两种,我用的是org.springframework,但是我们现在用的关于dubbo的,

所以,我把

严重: StandardWrapper.Throwable org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'goodsController' defined in file [D:\eclipse\eclipse-space\pinyougou_parent\pinyou换成

严重: StandardWrapper.Throwable org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'goodsController' defined in file [D:\eclipse\eclipse-space\pinyougou_parent\pinyoualibaba的

最后问题就解决了。