I'm encountering the following error when trying to compile the image code. I created a project just to test the code, and this appears. I have not found similar error elsewhere, can anyone help me?
Followthecode:
packagetestet;importjava.time.LocalDateTime;@Component@EnableSchedulingpublicclassTesteT{privatefinallongSEGUNDO=1000;privatefinallongMINUTO=SEGUNDO*60;privatefinallongHORA=MINUTO*60;@Scheduled(cron="0 0 12 * * *")
public void verificaPorHora() {
System.out.println(LocalDateTime.now());
// Código que realiza a consulta de fluxo de vendas
}
public static void main(String[] args) {
// TODO code application logic here
}
}