Skip to content

Commit c3aad7b

Browse files
committed
Migationguide
1 parent ccdeff5 commit c3aad7b

File tree

1 file changed

+39
-1
lines changed
  • batch-web-spring-boot-docs/src/main/asciidoc

1 file changed

+39
-1
lines changed

batch-web-spring-boot-docs/src/main/asciidoc/index.adoc

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Default port is 8080. Take a look at the JavaDoc of these controllers to get to
5555
There are two ways to influence batch-web-spring-boot-starter's behaviour. The first way is to set certain properties, the second way is to add certain components to the ApplicationContext. Let's take a look at the available properties first. Note that these are only the properties of batch-web-spring-boot-starter, there are more properties from Spring Boot described in the Spring Boot reference documentation.
5656

5757
|===
58-
|Property name |Description |Default value
58+
|*Property name* |*Description* |*Default value*
5959

6060
|batch.config.path-xml
6161
|Location in the classpath where Spring Batch job definitions in XML are picked up.
@@ -292,3 +292,41 @@ name: batch.metrics, tags: {context=simpleJob.simpleStep, name=DummyItemReader.r
292292
name: batch.metrics, tags: {context=simpleJob.simpleStep, name=ExampleService.callExternalRemoteService.duration}
293293
name: batch.metrics, tags: {context=simpleJob.simpleStep, name=businesscounter}
294294
----
295+
296+
== Migration from 1.x.x
297+
=== Properties
298+
Some properties have been renamed. This is the full mapping table.
299+
300+
|===
301+
| *old* | *new*
302+
303+
| batch.config.path.xml
304+
| batch.config.path-xml
305+
306+
| batch.config.package.javaconfig
307+
| batch.config.package-javaconfig
308+
309+
| batch.defaultprotocol.enabled
310+
| batch.default-protocol.enabled
311+
312+
| batch.logfileseparation.enabled
313+
| batch.logfile-separation.enabled
314+
315+
| batch.repository.isolationlevelforcreate
316+
| batch.repository.isolation-level-for-create
317+
318+
| batch.max.pool.size
319+
| batch.task-executor.max-pool-size
320+
321+
| batch.batch.core.pool.size
322+
| batch.task-executor.core-pool-size
323+
324+
| batch.queue.capacity
325+
| batch.task-executor.queue-capacity
326+
327+
| batch.repository.tableprefix
328+
| batch.repository.table-prefix
329+
|===
330+
331+
=== Metrics
332+
Metrics export is not done manually (implementing the Exporter interface) any more, since Spring Boot 2.x autoconfigures exporters for metrics. Take a look at the https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#production-ready-metrics[documentation] of Spring Boot.

0 commit comments

Comments
 (0)