Annotation Type Resource
-
@Retention(RUNTIME) @Target({FIELD,PARAMETER}) public @interface Resource
Resource
can be used in conjunction withParameter
andIteratedParameter
. It's a convenience annotation which dispenses the need for manually implementing the data provider.The given resource string is resolved by
PathMatchingResourcePatternResolver
and the data is fetched via consulting theDataProvider
.- Since:
- 3.0.0
- Author:
- Oliver Libutzki <[email protected]>
- See Also:
PathMatchingResourcePatternResolver
,DataProvider
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String
value
-