E
isBlank()
используется?Size: a a a
E
isBlank()
используется?E
StringUtils.hasText()
из org.springframework.util
?L
StringUtils.hasText()
из org.springframework.util
?DS
StringUtils.hasText()
из org.springframework.util
?C
C
АГ
М
АВ
АВ
АВ
АГ
АВ
АГ
AK
@Component
public class ScheduledTasks {
@Autowired private TaskScheduler taskScheduler;
// Tasks
@Autowired private SomeTask task1; // autowired in case the task has own autowired dependencies
@Autowired private AnotherTask task2;
@PostConstruct
public void scheduleTasks() {
taskScheduler.schedule(task1, new PeriodicTrigger(20, TimeUnit.SECONDS));
taskScheduler.schedule(task2, new CronTrigger("0 0 4 1/1 * ? *"));
}
}
SZ
AK
Я
C