返回顶部
摘要: public class ExecutorTest { /** * 默认开启的线程数, * 最大线程数, * 所有线程都执行完毕后多长时间关闭线程池, * 时间类型(秒、毫秒), * 消息队列最大数量 */ static ThreadPoolExecutor fixedThreadPool = ne 阅读全文
posted @ 2020-11-10 08:33 豪shr 阅读(92) 评论(0) 推荐(0)
摘要: 实体类需要先继承要复制的实体类 public class entityCope { public static void main(String[] args) throws Exception { a a = new a(); b b = new b(); b.setAddre("河北邯郸"); 阅读全文
posted @ 2020-11-10 08:27 豪shr 阅读(347) 评论(0) 推荐(0)
摘要: public class ClassUtil { //获取类的方法、返回值和参数 public void ClassPrintMethodMessage(Object obj){ //获取类类型 Class cls = obj.getClass(); System.out.println("类名:" 阅读全文
posted @ 2020-11-10 08:24 豪shr 阅读(487) 评论(0) 推荐(0)