RestServerFactory的createServer方法兼容SPI扩展支持文件com.alibaba.dubbo.remoting… #12909
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
….http.HttpBinder中的全部服务器类型
What is the purpose of the change
RestServerFactory中写死了jetty,servlet,tomcat三种类型的服务,想将这块开放出来支持更多的服务
Brief changelog
RestServerFactory中开放更多的服务类型
Verifying this change
开放后,通过在provider的dubbo.xml配置文件中配置dubbo protocol为rest,server命名为tongweb,配置示例如下:
<dubbo:protocol name="rest" port="20890" server="tongweb"/>
在启动时,能够使RestServerFactory的createServer不再报Unrecognized server name