1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 package org.springframework.batch.admin.web;
16
17 import org.springframework.context.annotation.Bean;
18 import org.springframework.context.annotation.Configuration;
19 import org.springframework.context.annotation.Import;
20
21
22
23
24
25
26
27
28
29
30
31 @Configuration
32 @Import(RestControllerAdvice.class)
33 public class RestConfiguration {
34
35 @Bean
36 public BatchJobExecutionsController batchJobExecutionsController() {
37 return new BatchJobExecutionsController();
38 }
39
40 @Bean
41 public BatchJobInstancesController batchJobInstancesController() {
42 return new BatchJobInstancesController();
43 }
44
45 @Bean
46 public BatchJobsController batchJobsController() {
47 return new BatchJobsController();
48 }
49
50 @Bean
51 public BatchStepExecutionsController batchStepExecutionsController() {
52 return new BatchStepExecutionsController();
53 }
54 }