摘要: 在springMVC的DispatcherServlet类的doService方法中有如下代码: 1 2 3 4 5 6 7 8 9 10 if (WebUtils.isIncludeRequest(request)) { attributesSnapshot = new HashMap<Strin 阅读全文
posted @ 2019-11-15 09:36 GordonDicaprio 阅读(906) 评论(0) 推荐(0) 编辑
摘要: 1. 实现 ApplicationListener<T> 接口(T为监听类型,稍后会列出具体可监听事件) 2. 将该自定义监听类,注册为Spring容器组件。(即将该类注入Spring容器) 实例: 该类监听ServletRequestHandledEvent事件,该事件为请求结束回调事件,即一个请 阅读全文
posted @ 2019-11-15 09:27 GordonDicaprio 阅读(1519) 评论(0) 推荐(0) 编辑