@Documented @Retention(value=RUNTIME) @Target(value=METHOD) public @interface Parameter
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
append |
boolean |
attribute |
boolean |
escaped |
boolean |
excluded |
String |
key |
boolean |
required |
boolean |
useKeyAsProperty
if
key() is specified, it will be used as the key for the annotated property when generating url. |
public abstract String key
public abstract boolean useKeyAsProperty
key() is specified, it will be used as the key for the annotated property when generating url.
by default, this key will also be used to retrieve the config value:
{@code
class ExampleConfig {
// Dubbo will try to get "dubbo.example.alias_for_item=xxx" from .properties, if you want to use the original property
// "dubbo.example.item=xxx", you need to set useKeyAsProperty=false.Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.