Spring v3.2.2 has added String parameters to the original 3 long parameters to handle this. fixedDelayString
, fixedRateString
and initialDelayString
are now available too.
@Scheduled(fixedDelayString = "${my.fixed.delay.prop}")
public void readLog() {
...
}
More Related Contents:
- Difference between and
- Spring annotation-based DI vs xml configuration?
- What’s the difference between @Component, @Repository & @Service annotations in Spring?
- Where does the @Transactional annotation belong?
- Does Spring @Transactional attribute work on a private method?
- Spring: @Component versus @Bean
- Only using @JsonIgnore during serialization, but not deserialization
- @RequestBody and @ResponseBody annotations in Spring
- Xml configuration versus Annotation based configuration [closed]
- @Resource vs @Autowired
- How to inject a Map using the @Value Spring Annotation?
- JsonMappingException: No suitable constructor found for type [simple type, class ]: can not instantiate from JSON object
- Getting Spring Application Context
- How to make spring inject value into a static field
- Understanding spring @Configuration class
- How to set up default schema name in JPA configuration?
- How to configure MappingJacksonHttpMessageConverter while using spring annotation-based configuration?
- @Transactional(propagation=Propagation.REQUIRED)
- Annotations from javax.validation.constraints not working
- How can I reload properties file in Spring 4 using annotations?
- How to scan multiple paths using the @ComponentScan annotation?
- Annotation Configuration Replacement for mvc:resources – Spring
- Spring: define @RequestMapping value in a properties file
- intellij incorrectly saying no beans of type found for autowired repository
- Spring @ContextConfiguration how to put the right location for the xml
- Where should I put @Transactional annotation: at an interface definition or at an implementing class?
- getServletConfigClasses() vs getRootConfigClasses() when extending AbstractAnnotationConfigDispatcherServletInitializer
- Spring MVC: difference between and tags? [duplicate]
- Provide time zone to Spring @Scheduled?
- What are annotations and how do they actually work for frameworks like Spring?