Dead man’s solution:
@Scheduled(initialDelay = 1000 * 30, fixedDelay=Long.MAX_VALUE)
You will be dead before it fires again.
More Related Contents:
- How to conditionally enable or disable scheduled jobs in Spring?
- Scheduling a job with Spring programmatically (with fixedRate set dynamically)
- How to stop a scheduled task that was started using @Scheduled annotation?
- How to change Spring’s @Scheduled fixedDelay at runtime?
- Does spring @Scheduled annotated methods runs on different threads?
- Spring cron expression for every day 1:01:am
- Spring cron vs normal cron?
- Provide time zone to Spring @Scheduled?
- How to respond with HTTP 400 error in a Spring MVC @ResponseBody method returning String?
- What is this spring.jpa.open-in-view=true property in Spring Boot?
- How to serve .html files with Spring
- How to import spring-config.xml of one project into spring-config.xml of another project?
- How to manage REST API versioning with spring?
- Generics with Spring RESTTemplate
- HttpSecurity, WebSecurity and AuthenticationManagerBuilder
- Showing a Spring transaction in log
- How to reload properties with Spring?
- How to write JUnit test with Spring Autowire?
- HTTP request compression
- Spring .properties file: get element as an Array
- Could not resolve placeholder in string value
- Spring security added prefix “ROLE_” to all roles name?
- HibernateException: Couldn’t obtain transaction-synchronized Session for current thread
- Error creating bean with name ‘entityManagerFactory
- Return a stream with Spring MVC’s ResponseEntity
- Spring Boot access static resources missing scr/main/resources
- bootstrap.yml configuration not processed anymore with Spring Cloud 2020.0
- What are annotations and how do they actually work for frameworks like Spring?
- RestTemplate with pem certificate
- Can we declare spring bean conditionally?