Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 45e2b78

Browse files
authored
Polish code block style and fix typo in whatsnew.adoc (#4901)
Polish AsciiDoc source block syntax and fix typo in whatsnew.adoc Signed-off-by: Sieun Lee <leesieun08@naver.com>
1 parent 980ff7b commit 45e2b78

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

‎spring-batch-docs/modules/ROOT/pages/whatsnew.adoc

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ This implementation requires MongoDB version 4 or later and is based on Spring D
4141
In order to use this job repository, all you need to do is define a `MongoTemplate` and a
4242
`MongoTransactionManager` which are required by the newly added `MongoJobRepositoryFactoryBean`:
4343

44-
```
44+
[source, java]
45+
----
4546
@Bean
4647
public JobRepository jobRepository(MongoTemplate mongoTemplate, MongoTransactionManager transactionManager) throws Exception {
4748
MongoJobRepositoryFactoryBean jobRepositoryFactoryBean = new MongoJobRepositoryFactoryBean();
@@ -50,7 +51,7 @@ public JobRepository jobRepository(MongoTemplate mongoTemplate, MongoTransaction
5051
jobRepositoryFactoryBean.afterPropertiesSet();
5152
return jobRepositoryFactoryBean.getObject();
5253
}
53-
```
54+
----
5455

5556
Once the MongoDB job repository defined, you can inject it in any job or step as a regular job repository.
5657
You can find a complete example in the https://github.com/spring-projects/spring-batch/blob/main/spring-batch-core/src/test/java/org/springframework/batch/core/repository/support/MongoDBJobRepositoryIntegrationTests.java[MongoDBJobRepositoryIntegrationTests].
@@ -85,7 +86,8 @@ over different resources and writing a custom reader is not an option.
8586
A `CompositeItemReader` works like other composite artifacts, by delegating the reading operation to regular item readers
8687
in order. Here is a quick example showing a composite reader that reads persons data from a flat file then from a database table:
8788

88-
```
89+
[source, java]
90+
----
8991
@Bean
9092
public FlatFileItemReader<Person> itemReader1() {
9193
return new FlatFileItemReaderBuilder<Person>()
@@ -112,12 +114,12 @@ public JdbcCursorItemReader<Person> itemReader2() {
112114
public CompositeItemReader<Person> itemReader() {
113115
return new CompositeItemReader<>(Arrays.asList(itemReader1(), itemReader2()));
114116
}
115-
```
117+
----
116118

117119
[[new-adapters-for-java-util-function-apis]]
118120
== New adapters for java.util.function APIs
119121

120-
Similar to `FucntionItemProcessor` that adapts a `java.util.function.Function` to an item processor, this release
122+
Similar to `FunctionItemProcessor` that adapts a `java.util.function.Function` to an item processor, this release
121123
introduces several new adapters for other `java.util.function` interfaces like `Supplier`, `Consumer` and `Predicate`.
122124

123125
The newly added adapters are: `SupplierItemReader`, `ConsumerItemWriter` and `PredicateFilteringItemProcessor`.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /