I am planning a task using the Spring Framework and has the cron value specified in the environment properties file. I am looking for a way to disable this task using a property so that only certain environments perform this task.
<task:scheduled-tasks> <task:scheduled ref="theClass" method="theMethod" cron="${scheduler.cron}" /> </task:scheduled-tasks> <bean id="theClass" class="com.test.TheClass" scope="prototype" />
source share