spring 定时器(spring3.0)

cron介绍:
http://www.360doc.com/content/10/0127/14/36589_14507247.shtml

 

spring2.5.6的配置:https://blog.csdn.net/coooliang/article/details/6856351

用了标签 真的简单好多!!!

首先要引入xsd:

 

 

 
     
    
     
     

 

普通java类:

package com.jungle.test; 
import java.util.Date;

public class TaskTest { 
    public void say() { 
        System.out.println("easy !!!" + new Date()); 
    }
    public void hello(){ 
            System.out.println("hello!!!");
    } 
}

 

你可能感兴趣的:(框架相关)