[JAVA] ScheduledExecutorService Timer 적용(자동 리플레쉬)
·
PROGRAMING/Timer
public static void main(String[] args) { System.out.println("##### AutoTimer Start #####"); Runnable runnable = new Runnable() { public void run() { SimpleDateFormat formatter = new SimpleDateFormat ("yyyy-MM-dd hh:mm:ss"); Calendar cal = Calendar.getInstance(); String today = formatter.format(cal.getTime()); Timestamp ts = Timestamp.valueOf(today); //java.sql System.out.println("##### AutoTimer..