Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @RequestMapping(value = "/v1/initiateEntityCreation", method = RequestMethod.GET)
- public String initiateEntityCreation()
- throws JobExecutionAlreadyRunningException, JobRestartException, JobInstanceAlreadyCompleteException,
- JobParametersInvalidException, NoSuchJobException, JobInstanceAlreadyExistsException {
- JobParametersBuilder jobParametersBuilder = new JobParametersBuilder();
- jobParametersBuilder.addDate("Date", new Date());
- Long executionContext = jobOperator.start("InitiateEntityCreation", String.format("Date=%s", new Date()));
- return executionContext.toString();
- }
- java -jar spring-cloud-dataflow-server-local-1.2.3.RELEASE.jar --
- spring.datasource.url=jdbc:mysql://localhost:3306/springbatchdb--
- spring.datasource.username=root --spring.datasource.password=password --
- spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
Add Comment
Please, Sign In to add comment