@Documented @Retention(value=RUNTIME) @Target(value=FIELD) public @interface InjectProperty
| Modifier and Type | Optional Element and Description |
|---|---|
String |
defaultValue |
String[] |
keys
The name of the property
1.support priority
high,middle,low
2.support placeholder
name is root.${placeholder-1}.name
placeholder-1 is k1
then final name is root.k1.name
3.placeholder can be a list
name is root.${placeholder-1}.name
placeholder-1 is a list, value is k1-1/k1-2
then final name is root.k1-1.name/root.k1-2.name
|
String |
prefix
override prefix of
InjectProperties |
public abstract String prefix
InjectPropertiespublic abstract String[] keys
The name of the property
1.support priority
high,middle,low
2.support placeholder
name is root.${placeholder-1}.name
placeholder-1 is k1
then final name is root.k1.name
3.placeholder can be a list
name is root.${placeholder-1}.name
placeholder-1 is a list, value is k1-1/k1-2
then final name is root.k1-1.name/root.k1-2.name
public abstract String defaultValue
Copyright © 2017–2021 The Apache Software Foundation. All rights reserved.