摘要:
InputStream inputStream = TestTb.class.getClassLoader() .getResourceAsStream("properties/test.properties"); Properties p = new Properties(); try { p.l 阅读全文
摘要:
public static String getIpAddr(HttpServletRequest request) { String ip = request.getHeader("x-forwarded-for"); if (ip == null || ip.length() == 0 || " 阅读全文
摘要:
java定时任务,每天定时执行任务。以下是这个例子的全部代码。 public class TimerManager { //时间间隔 private static final long PERIOD_DAY = 24 * 60 * 60 * 1000; public TimerManager() { 阅读全文