Springboot整合Mybatis+Dubbo时服务方启动报错Field XXX required a bean of type XXX that could not be found

今天搭建Springboot项目一直报错Field XXX required a bean of type XXX that could not be found springboot的配置文件中如果有spring.dubbo.base-package就会报错,去掉就启动成功。 配置文件如下: 报错如下: 因为在service层有用到mapper类,一直加载不到类,所以就报错了。 解决方法: 在主
相关文章
相关标签/搜索