2022-05-05 08:49:20.401 [restartedMain] ERROR org.springframework.boot.SpringApplication at line 830 - Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'apiController': Injection of @DubboReference dependencies is failed; nested exception is java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Class
以下是dubbo版本和spring版本
还有什么方法可以解决此问题哇
启动上缺少注解--@EnableDubbo
错误提示是 不能够创建 bean -----apiController,
注入DubboReference依赖失败, ---可能缺少依赖---->>
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-registry-zookeeper</artifactId>
</dependency>
欢迎采纳!!!
你要是自己的demo,搞个压缩包丢网盘看看
这个问题依然没有直接解决!我的解决方案是,我新建了一个基础的springboot项目,然后把之前老项目的代码和相关依赖都copy过来,他就好了,离了个大谱