上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 92 下一页
摘要: 9. 重新认识 Maven Maven 的完整功能 在入门的时候我们介绍说 Maven 是一款『构建管理』和『依赖管理』的工具。但事实上这只是 Maven 的一部分功能。 Maven 本身的产品定位是一款『项目管理工具』 项目管理功能的具体体现 下面是 spring-boot-starter 的 P 阅读全文
posted @ 2022-11-29 19:43 流星<。)#)))≦ 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 1. Maven 概述 Maven 是 Apache 软件基金会组织维护的一款专门为 Java 项目提供 构建 和 依赖管理 支持的工具。 Maven 的作用: Maven 作为依赖管理工具 Maven 作为构建管理工具 构建过程包含的主要的环节: 清理:删除上一次构建的结果,为下一次构建做好准备 阅读全文
posted @ 2022-11-29 19:42 流星<。)#)))≦ 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 版本信息 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> 版本 2.6.7 目录 Servlet 相关的 S 阅读全文
posted @ 2022-11-28 09:50 流星<。)#)))≦ 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 概述 DispatcherServlet 九大组件中 HandlerAdapter 的实现之一 Spring Boot 启动日志: 2022-06-09 19:14:14.788 DEBUG 13144 [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter 阅读全文
posted @ 2022-11-28 09:48 流星<。)#)))≦ 阅读(78) 评论(0) 推荐(0) 编辑
摘要: @Configuration(proxyBeanMethods = false) 的作用 默认 proxyBeanMethods = true ,会为配置类生成 CGLIB 代理类。注意,不是为定义的 @Bean 生成代理类。 如果在 @Bean 方法 1 中引用了其他 @Bean 方法 2,此时需 阅读全文
posted @ 2022-11-28 09:48 流星<。)#)))≦ 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 概述 用于在 HTTP 请求和响应之间进行转换的策略接口。 接口定义 public interface HttpMessageConverter<T> { boolean canRead(Class<?> clazz, @Nullable MediaType mediaType); boolean 阅读全文
posted @ 2022-11-28 09:47 流星<。)#)))≦ 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 概述 DispatcherServlet 的继承关系 DispatcherServlet 初始化 触发初始化时机 处理第一个请求时需要初始化 这里执行的是 servlet.init 方法,也就是 Servlet 初始化生命周期 初始化方法执行链路: servlet.init FrameworkSer 阅读全文
posted @ 2022-11-28 09:46 流星<。)#)))≦ 阅读(123) 评论(0) 推荐(0) 编辑
摘要: WebMvcConfigurer 接口定义的方法 | 方法 | 影响 WebMvcConfigurationSupport 类中的 @Bean 方法 | 描述 | | | | | | configurePathMatch | RequestMappingHandlerMapping requestM 阅读全文
posted @ 2022-11-28 09:45 流星<。)#)))≦ 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 自动配置类 Servlet 相关的匹配的自动配置类: org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration org.springframework.boot.autoconfigur 阅读全文
posted @ 2022-11-28 09:44 流星<。)#)))≦ 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 查询版本 select version(); 查询编码 查询表名和表注释 select TABLE_NAME, TABLE_COMMENT from INFORMATION_SCHEMA.Tables where table_schema = 'daoancomp'; 查询表字段和注释 select 阅读全文
posted @ 2022-11-22 14:06 流星<。)#)))≦ 阅读(11) 评论(0) 推荐(0) 编辑
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 92 下一页