Java定时任务

原生Spring方式1.定义初始化类public class A extends HttpServlet{@Overridepublic void init(){Timer timer = new Timer(true);timer.schedule(new B(), firstTime, peri

查看全文