上一页 1 2 3 4 5 6 7 8 ··· 32 下一页
摘要: 知识点回顾 springboot定制化原理 1.定制化的常见方式 修改配置文件 xxxxCustomizer 编写自定义的配置类 xxxConfiguration + @Bean 替换、增加容器中默认组件:视图解析器 Web应用编写一个配置类实现WebMvcConfiguration即可定制化web 阅读全文
posted @ 2021-10-09 22:33 豆豆tj 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 知识点回顾 springboot嵌入式Servlet容器 默认支持的webServer Tomcat,Jetty, or Undertow ServletWebServerApplicationContext容器启动寻找ServletWebServerFactory并引导创建服务器 切换服务器 Je 阅读全文
posted @ 2021-10-08 22:37 豆豆tj 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 知识点回顾 springboot 异常处理步骤流程 1、执行目标方法,目标方法运行期间没有任何异常都会被catch,而且当请求结束,并且用dispatchException 2、进入视图解析流程 processDispatchResult(processedRequest,response,mapp 阅读全文
posted @ 2021-10-07 22:41 豆豆tj 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 知识点回顾 springboot异常处理自动配置原理 ErrorMvcAutoConfiguration 自动配置异常处理规则 容器中的组件:类型:DefaultErroAttributes id errorAttributes public class DefaultErroAttributes 阅读全文
posted @ 2021-10-06 22:41 豆豆tj 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 知识点回顾 springboot拦截器原理 1.根据当前请求,找到HandlerExecutionChain【可以处理请求的handler以及handler的所以拦截器】 2.先来顺序执行所有的preHandle方法 如果当前拦截器prehandle返回true,则执行下一个拦截器的preHandl 阅读全文
posted @ 2021-10-05 22:10 豆豆tj 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 知识点回顾 springboot 视图解析原理流程 1.目标方法处理的过程中,所有数据都会被放在ModelAndViewContainer里面,包括数据和视图地址 2.方法的参数是一个自定义类型对象(从请求参数中确定),把他重新放在ModelAndViewContainer 3.任何目标方法执行完成 阅读全文
posted @ 2021-10-04 22:40 豆豆tj 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 知识点回顾 视图解析与模板引擎 视图解析: SpringBoot默认不支持JSP,需要引入第三方模板引擎技术实现页面渲染 1.视图解析: 视图处理方式: 转发 重定向 自定义视图 2.模板引擎-Thymeleaf 现代化,服务端Java模板引擎 基本语法 表达式名语法用途 变量取值 ${...} 获 阅读全文
posted @ 2021-10-03 22:29 豆豆tj 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 知识点回顾 springboot返回值解析器原理 HandlerMethodReturnValueHandler handlerReturnValue handlerReturnType 1.返回值处理器判断是否支持这种类型返回值supportsReturnType 2.返回值处理器调用handle 阅读全文
posted @ 2021-10-02 21:59 豆豆tj 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 知识点回顾 springmvc支持的返回值 ModelAndView Model View ResponseEntity ResponseBodyEmitter StreamingResponseBody HttpHeaders Callable DeferredResult ListenableF 阅读全文
posted @ 2021-10-01 12:19 豆豆tj 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 知识点回顾 springboot复杂参数 Map、Model(map, model里面的数据会被放在request的请求域 request.setAttribute)、Errors/BindingResult、RedirectAttributes(重定向携带数据),ServletResponse(r 阅读全文
posted @ 2021-09-30 22:38 豆豆tj 阅读(38) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 32 下一页