摘要:
获取class对象,有三种方法: 1.通过类名.class直接访问 Class c = Integer.class; 2.通过Class.forName(类名)函数获取 Class c = Class.forName("Integer"); 3.通过对象.class获取 Integer n = ne 阅读全文
摘要:
1 - Tomcat Server的组成部分 1.1 - Server A Server element represents the entire Catalina servlet container. (Singleton) 1.2 - Service A Service element rep 阅读全文
摘要:
方法1. 得到long类型当前时间long l = System.currentTimeMillis();//new日期对象Date date = new Date(l);//转换提日期输出格式SimpleDateFormat dateFormat = new SimpleDateFormat("y 阅读全文