简体   繁体   English

QuartzJobBean在春天位于哪里?

[英]Where is QuartzJobBean located in spring?

I am trying to learn about Quartz in Spring from this article : http://examples.javacodegeeks.com/enterprise-java/spring/beans-spring/spring-3-scheduler-example-jdk-timer-and-quartz-showcase/ 我正在尝试从这篇文章中了解Spring中的Quartz: http : //examples.javacodegeeks.com/enterprise-java/spring/beans-spring/spring-3-scheduler-example-jdk-timer-and-quartz-showcase /

when I imported this example in STS I got an error : 当我在STS中导入此示例时,出现错误:

The import org.springframework.scheduling.quartz cannot be resolved 导入org.springframework.scheduling.quartz无法解析

in this line : 在这一行:

import org.springframework.scheduling.quartz.QuartzJobBean; 导入org.springframework.scheduling.quartz.QuartzJobBean;

Add this dependency in your pom.xml 在您的pom.xml中添加此依赖项

<dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-context-support</artifactId>
   <version>3.1.2.RELEASE</version>
</dependency>

This is tutorial quite detail about quarzt job. 这是关于夸脱作业的详细教程。 you can reference from it http://www.mkyong.com/java/quartz-scheduler-example/ 您可以从中引用http://www.mkyong.com/java/quartz-scheduler-example/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM