dubbo:parameter

dubbo:parameter element

Optional parameter configuration. The corresponding class is java.util.Map. This tag is used as a sub tag to configure custom parameters for extending <dubbo:protocol>, <dubbo:service>, <dubbo:provider>, <dubbo:reference> or <dubbo:consumer>.

AttributeCorresponding URL parameterTypeRequiredDefault ValueFunctionDescriptionCompatibility
keykeystringTrueService governancerouting parameter keyAbove 2.0.0
valuevaluestringTrueService governancerouting parameter valueAbove 2.0.0

For example:

<dubbo:protocol name="napoli">
    <dubbo:parameter key="http://10.20.160.198/wiki/display/dubbo/napoli.queue.name" value="xxx" />
</dubbo:protocol>

you can also use it like this:

<dubbo:protocol name="jms" p:queue="xxx" />

Last modified November 25, 2020: fix sample code issue for SPI.md (#659) (0576d68)