Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Commit

Permalink
Beans created by ImapSyncScheduleAutoConfiguration should have explic…
Browse files Browse the repository at this point in the history
…it names #9
  • Loading branch information
Denis Ivanov committed Jul 23, 2021
1 parent c19d37e commit e36cb11
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class ImapSyncScheduleAutoConfiguration {
@Autowired
private ImapProperties imapProperties;

@Bean
@Bean("imap_ImapSyncJob")
JobDetail imapSyncJob() {
return JobBuilder.newJob()
.ofType(ImapSyncJob.class)
Expand All @@ -49,7 +49,7 @@ JobDetail imapSyncJob() {
.build();
}

@Bean
@Bean("imap_EmailSendingTrigger")
Trigger emailSendingTrigger() {
String cron = imapProperties.getImapSyncCron();
log.info("Schedule Imap Sync using default configuration with CRON expression '{}'", cron);
Expand Down

0 comments on commit e36cb11

Please sign in to comment.