You have already seen how to build a scheduler using quartz. With already providing
support to any possible tech feature in today's world, it's no surprise that Spring has
support for quartz. We will see here how you can build quartz application using
Spring.
Again for this project also we are going to take help from maven.
If you don't know how to create a simple maven project , check this link - Create a Simple Maven Project
Let's go step by step.
1. Create a simple maven project.
2. We are using Spring 3.0 version here, agree it is bit old, but I guess no significant change has been done ( if any) for quartz support.
Enter this dependencies in pom.xml :
3. Now under your 'src' folder make two sub-folder, namely : 'com/java' and 'resource'.org.springframework spring-core 3.0.4.RELEASE org.springframework spring-context-support 3.0.4.RELEASE org.springframework spring-tx 3.0.4.RELEASE org.quartz-scheduler quartz 1.8.5