随笔分类 -  springmvc

摘要:1 DispatcherServlet的handlerExceptionResolvers 在DispatcherServlet初始化过程中,执行如下初始化方法 protected void initStrategies(ApplicationContext context) { initMulti 阅读全文
posted @ 2023-02-20 17:44 zhenjingcool 阅读(32) 评论(0) 推荐(0)
摘要:官网https://docs.spring.io/spring-framework/docs/current/reference/html/web.html 1 DispatcherServlet DispatcherServlet是前端控制器。它是一个共享的Servlet,接收所有请求。而实际请求 阅读全文
posted @ 2022-08-25 20:37 zhenjingcool 阅读(719) 评论(0) 推荐(0)
摘要:目前web应用都是使用前后端分离的开发方式,在这种方式下,其实不会用到springmvc的视图解析器。 官网上有这么一段话:An appropriate handler is searched for. If a handler is found, the execution chain assoc 阅读全文
posted @ 2022-08-24 08:21 zhenjingcool 阅读(299) 评论(0) 推荐(0)
摘要:示例项目见第四部分 1 原理 1.1 配置文件web.xml <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3. 阅读全文
posted @ 2022-02-12 14:03 zhenjingcool 阅读(320) 评论(0) 推荐(0)