摘要: 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... 阅读全文
posted @ 2012-09-28 16:27 合肥房屋托管 阅读(404) 评论(0) 推荐(0) 编辑
摘要: 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驱动 ... 阅读全文
posted @ 2012-09-28 16:25 合肥房屋托管 阅读(524) 评论(0) 推荐(0) 编辑