Spring定时任务Scheduled

把秒杀商品通过定时任务存到Redis applicationContext-task.xml <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans"       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"       xmlns:p="http://www.springframework.org/schema/p"     &...

read more..

Quartz定时任务的使用

导入依赖        <dependency>            <groupId>org.quartz-scheduler</groupId>            <artifactId>quartz</artifactId>            <version>2.2.1</version>        </dependency>     &nbs...

read more..