摘要: 1.execute(Runnable),任务提交方法 public void execute(Runnable command) { if (command == null) throw new NullPointerException(); //ctl:记录线程池是生命周期状态和当前工作线程数; 阅读全文
posted @ 2021-09-11 21:19 水映苑 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 线程池生命周期状态 RUNNING:接收新任务并执行队列中的任务 SHUTDOWN:不会接收新任务,但会继续处理队列中的任务 STOP:不接受新任务,不处理队列中的任务,并中断正在进行的任务 TIDYING:所有的任务都已终止,工作线程数为零,在转为此状态后可以执行一个terminated()的钩子 阅读全文
posted @ 2021-09-11 21:19 水映苑 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 1.struts2版本号:2.5.26 。 2.自定义拦截器(此处,struts2已经对请求数据进行了处理,文件表单数据也可以获取,但处理不了文件) public class XssInterceptor extends AbstractInterceptor { @Override public 阅读全文
posted @ 2021-09-02 08:37 水映苑 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 1.7 一,上周 public static void lastWeek(){ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); Calendar calendar = Calendar.getInstance(); calenda 阅读全文
posted @ 2020-08-28 16:21 水映苑 阅读(248) 评论(0) 推荐(0) 编辑