Guest User

Untitled

a guest
Feb 25th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. @RequestMapping("/checkRecord")
  2. @ResponseBody
  3. void record() {
  4. Date startDate = new Date();
  5. recordService.checkDate();
  6. Date endDate = new Date();
  7. PropertiseUtil.elapsedTime(startDate, endDate);
  8. }
  9.  
  10. @RequestMapping("/reminder") // write springBatch
  11. @ResponseBody
  12. public void reminder() throws Exception {
  13. log.info("############ Start ############");
  14. JobParameters jobParameters = new JobParametersBuilder().addLong("time", System.currentTimeMillis())
  15. .toJobParameters();
  16. jobLauncher.run(job, jobParameters);
  17. }
  18.  
  19. #Mysql server configure
  20. spring.datasource.url = jdbc:mysql://192.xxx.xxx.xxx:3306/abc
  21. spring.datasource.username = xxx
  22. spring.datasource.password = xxx
  23.  
  24. #For springBatch
  25. spring.datasource.url = jdbc:h2:file:./DB
  26.  
  27. #Mysql configure databaseA
  28. dbA.datasource.url = jdbc:mysql://192.xxx.xxx.xxx:3306/dbA
  29.  
  30. spring.datasource.url = jdbc:mysql://192.xxx.xxx.xxx:3306/abc
  31. spring.datasource.url = jdbc:h2:file:./DB
Add Comment
Please, Sign In to add comment