mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-07 17:38:32 +08:00
Update SynchronizersController.java
This commit is contained in:
parent
d397ea7d80
commit
ed05a7bcd0
@ -90,8 +90,12 @@ public class SynchronizersController {
|
||||
synchronizer.setCredentials(PasswordReciprocal.getInstance().decoder(synchronizer.getCredentials()));
|
||||
_logger.debug("synchronizer " + synchronizer);
|
||||
ISynchronizerService synchronizerService = WebContext.getBean(synchronizer.getService(),ISynchronizerService.class);
|
||||
synchronizerService.setSynchronizer(synchronizer);
|
||||
synchronizerService.sync();
|
||||
if(synchronizerService != null) {
|
||||
synchronizerService.setSynchronizer(synchronizer);
|
||||
synchronizerService.sync();
|
||||
}else {
|
||||
_logger.info("synchronizer {} not exist .",synchronizer.getService());
|
||||
}
|
||||
}
|
||||
}catch(Exception e) {
|
||||
_logger.error("synchronizer Exception " , e);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user