SampsonJava opened a new issue, #10450:
URL: https://github.com/apache/dubbo/issues/10450
dubbo版本:dubbo2.7.16
在resources/MATA-INF/dubbo/internal下新建的org.apache.dubbo.remoting.Transporter文件
启动的时候dubbo的ExtensionLoader#loadDirectory方法扫描的fileName是对的,但是就是扫描不到当前项目下的这个文件,只能扫描到dubbo源码jar里面的org.apache.dubbo.remoting.Transporter文件,导致自定义spi实现无法加载
但是在dubbo源码项目的demo里面使用同样姿势,新建的同样路径的同样文件, 启动的时候可以扫描到自定义的Transporter实现
想请问下是姿势不对吗, 还是说有什么依赖缺少
添加了下面2个依赖和dubbo基础依赖,目前项目可以正常提供和调用,仅仅不能扫描到当前路径的spi实现
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-remoting-netty4</artifactId>
<version>2.7.16</version>
</dependency>
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-rpc-dubbo</artifactId>
<version>2.7.16</version>
</dependency>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]