-1
I am encountering the following error when trying to compile the image code. I created a project just to test the code, and this comes up. I found no similar mistake elsewhere, someone can help me?
Follows the code:
package testet;
import java.time.LocalDateTime;
@Component
@EnableScheduling
public class TesteT {
private final long SEGUNDO = 1000;
private final long MINUTO = SEGUNDO * 60;
private final long HORA = 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
}
}
Welcome to stackoverflow. Edit the question and add it in textual form, both your code and the error, so it makes it easy to help you.
– user28595