title: What is best way to schedule task in spring boot application
body: <p>I am current developing an application based on Spring-Boot. </p>
  
  <p>I know that annotation like @Scheduled can schedule tasks. Since users in my application wanna send mails at different time and send only once.</p>
  
  <p>I have already read the post <a href="https://stackoverflow.com/questions/30347233/spring-scheduling-task-run-only-once">Spring scheduling task - run only once</a>,
  but it is weird always "new" an localExecutor in a Spring based application.</p>
  
  <p>In that way , once a user schedule sending an email, I have to "new" an localExecutor for his task.</p>
  
  <p>So , are there any better ways?</p>