摘要:
public static void main(String[] args) { Integer cacheTime = 1000 * 10; Timer timer = new Timer(); // (TimerTask task, long delay, long period)任务,延迟时间,多久执行 timer.schedule(new TimerTask() { @Override public void run... 阅读全文
摘要:
public static void main(String[] args) throws ClassNotFoundException { try{ String dbUrl = "jdbc:oracle:thin:@localhost:1521:ORCL"; String user = "scott"; String password = "tiger"; Class.forName("oracle.jdbc.driver.OracleDriver"); //加载JDBC驱动 ... 阅读全文