Percent sign % not working in crontab

% is a special character for crontab. From man 5 crontab: The “sixth” field (the rest of the line) specifies the command to be run. The entire command portion of the line, up to a newline or a “%” character, will be executed by /bin/sh or by the shell specified in the SHELL variable of … Read more

Using @Scheduled and @EnableScheduling but gives NoSuchBeanDefinitionException

according to exception Info Could not find default TaskScheduler bean, the config should define TaskScheduler rather than “Executor” @Configuration public class AppContext extends WebMvcConfigurationSupport { @Bean public TaskScheduler taskScheduler() { return new ConcurrentTaskScheduler(); } // Of course , you can define the Executor too @Bean public Executor taskExecutor() { return new SimpleAsyncTaskExecutor(); } }

Cronjob or MySQL event?

I would always go a cron job, because: That’s where sysadmins will expect it to be (this point is not to be underestimated) crontab is bullet-proof, time-tested, extremely widely used and understood You can freely direct/analyse error/success messages where you want Some database tasks require/prefer mysql to be off-line (eg full backup), so you’ve got … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)