1、<dubbo:protocol>服务提供者协议配置
name(必填):协议名称
port:端口
threads:业务线程池线程数
contextpath:接口路径
server:使用服务器
accepts:用于限制Provider可以接受最大连接数量
extension:扩展点加载。(待补充)
(拓展:基于JDK提供的SPI(Service Provider Interface)发现机制增强而来)
2、<dubbo:service>服务提供者暴露服务配置
interface(必填):服务接口名
ref(必填):服务对象实现引用,即对应的Service接口文件名
document:服务文档URL路径
protocol:使用指定的协议暴露服务