随笔分类 -  SSM整合

SSM整合的知识点
摘要:Spring5.1以后提供的一个过滤器。将PUT、PATCH、DELETE请求体解析为Servlet请求参数。如果不在web.xml中配置这个过滤器,只有POST请求体可以解析。 Filter that parses form data for HTTP PUT, PATCH, and DELETE 阅读全文
posted @ 2021-01-28 12:22 日进一卒 阅读(875) 评论(0) 推荐(0)
摘要:HiddenHttpMethodFilter过滤器的作用是将form表单提交的POST请求转化为指定的标准请求(GET,、POST、 HEAD、OPTIONS、PUT、DELETE、TRACE)。该过滤器的实现原理是:通过读取POST请求体中的"_method"属性值,将该属性值作为 HttpSer 阅读全文
posted @ 2021-01-28 11:35 日进一卒 阅读(1056) 评论(0) 推荐(0)
摘要:public class ContextLoaderListener extends ContextLoader implements ServletContextListener {//实现了ServletContextListener接口(Servlet上下文监听器),可以监听web服务器上下文 阅读全文
posted @ 2021-01-28 11:15 日进一卒 阅读(196) 评论(0) 推荐(0)
摘要:RequestContextListener监听器用于监听http请求,每当web应用接收到Http请求,该监听器就会调用初始化方法,将该请求保存在当前线程的ThreadLocalMap容器中。 public class RequestContextListener implements Servl 阅读全文
posted @ 2021-01-27 21:46 日进一卒 阅读(1532) 评论(0) 推荐(0)