Guest User

Untitled

a guest
Feb 7th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. @RequestMapping(value = "/v1/initiateEntityCreation", method = RequestMethod.GET)
  2. public String initiateEntityCreation()
  3. throws JobExecutionAlreadyRunningException, JobRestartException, JobInstanceAlreadyCompleteException,
  4. JobParametersInvalidException, NoSuchJobException, JobInstanceAlreadyExistsException {
  5. JobParametersBuilder jobParametersBuilder = new JobParametersBuilder();
  6. jobParametersBuilder.addDate("Date", new Date());
  7. Long executionContext = jobOperator.start("InitiateEntityCreation", String.format("Date=%s", new Date()));
  8. return executionContext.toString();
  9. }
  10.  
  11. java -jar spring-cloud-dataflow-server-local-1.2.3.RELEASE.jar --
  12. spring.datasource.url=jdbc:mysql://localhost:3306/springbatchdb--
  13. spring.datasource.username=root --spring.datasource.password=password --
  14. spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
Add Comment
Please, Sign In to add comment