如何使用java配置获取MultiResourrceItemReader的当前资源

时间:2018-10-19 05:17:23

标签: spring-batch

下面是我尝试的代码。

@Bean
public MultiResourceItemReader<Map<String, String>> multiResourceItemReader() throws FileNotFoundException {
    MultiResourceItemReader<Map<String, String>> resourceItemReader = new MultiResourceItemReader<Map<String, String>>();
    inputResources=getMultipleResourceItemreader();
    resourceItemReader.setResources(inputResources);
    resourceItemReader.setDelegate(reader());
    return resourceItemReader;
}

1 个答案:

答案 0 :(得分:0)

您可以使用_process_node接口获取资源名称。您的{ "applinks": { "apps": [], "details": [ { "appID": "BundleIdentifierOfYourApp", "paths": ["/reset-password/*"] } ] } } 应该实现["/reset-password/*","reset-password1/*","reset-password2/*"] 接口。

ResourceAware