checkwiner.java
来自「基于ssh2的三者整合」· Java 代码 · 共 34 行
JAVA
34 行
package com.lixineng.schedule;
import java.util.TimerTask;
import com.lixineng.exception.AuctionException;
import com.lixineng.service.AuctionService;
public class CheckWiner extends TimerTask {
private AuctionService aucService;
public void setAucService(AuctionService aucService) {
this.aucService = aucService;
}
public void run() {
// TODO Auto-generated method stub
System.out.println("----------启动-----------");
try
{
aucService.updateWiner();
}
catch (AuctionException ae)
{
ae.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?