SpringBoot
文章平均质量分 94
博晓战
这个作者很懒,什么都没留下…
展开
-
SpringBoot学习笔记2——源码分析(请求处理)
3、参数处理原理 HandlerMapping中找到能处理请求的Handler(Controller.method()) 为当前Handler 找一个适配器 HandlerAdapter; RequestMappingHandlerAdapter 适配器执行目标方法并确定方法参数的每一个值 1、HandlerAdapter 0 - 支持方法上标注@RequestMapping 1 - 支持函数式编程的 xxxxxx 2、执行目标方法 // Actually invok..原创 2021-07-01 15:49:29 · 506 阅读 · 0 评论 -
SpringBoot学习笔记1——基础入门
SpringBoot 重新指定版本号,见注释部分 默认的包结构 主程序所在包及其下面的所有子包里面的组件都会被默认扫描进来 无需以前的包扫描配置 想要改变扫描路径,@SpringBootApplication(scanBasePackages="com.atguigu") 或者@ComponentScan 指定扫描路径 @SpringBootApplication 等同于 @SpringBootConfiguration...原创 2021-06-30 14:36:30 · 318 阅读 · 0 评论