Skip to content

Commit

Permalink
Clarify wildcard usage to select input files with Java configuration
Browse files Browse the repository at this point in the history
Resolves #4707

Signed-off-by: Mahmoud Ben Hassine <[email protected]>
  • Loading branch information
fmbenhassine committed Dec 18, 2024
1 parent 8165a6c commit 0953627
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ The following example shows how to read files with wildcards in Java:
[source, java]
----
@Bean
public MultiResourceItemReader multiResourceReader() {
public MultiResourceItemReader multiResourceReader(@Value("classpath:data/input/file-*.txt") Resource[] resources) {
return new MultiResourceItemReaderBuilder<Foo>()
.delegate(flatFileItemReader())
.resources(resources())
.resources(resources)
.build();
}
----
Expand Down

0 comments on commit 0953627

Please sign in to comment.