Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @RequestMapping("/checkRecord")
- @ResponseBody
- void record() {
- Date startDate = new Date();
- recordService.checkDate();
- Date endDate = new Date();
- PropertiseUtil.elapsedTime(startDate, endDate);
- }
- @RequestMapping("/reminder") // write springBatch
- @ResponseBody
- public void reminder() throws Exception {
- log.info("############ Start ############");
- JobParameters jobParameters = new JobParametersBuilder().addLong("time", System.currentTimeMillis())
- .toJobParameters();
- jobLauncher.run(job, jobParameters);
- }
- #Mysql server configure
- spring.datasource.url = jdbc:mysql://192.xxx.xxx.xxx:3306/abc
- spring.datasource.username = xxx
- spring.datasource.password = xxx
- #For springBatch
- spring.datasource.url = jdbc:h2:file:./DB
- #Mysql configure databaseA
- dbA.datasource.url = jdbc:mysql://192.xxx.xxx.xxx:3306/dbA
- spring.datasource.url = jdbc:mysql://192.xxx.xxx.xxx:3306/abc
- spring.datasource.url = jdbc:h2:file:./DB
Add Comment
Please, Sign In to add comment