01 2022 档案

摘要:1 SQL 1.1 数据源的自动配置-HikariDataSource 1.1.1 导入JDBC场景 引入了Hikari数据源、jdbc、事务,但是没有导入驱动 <dependency> <groupId>org.springframework.boot</groupId> <artifactId> 阅读全文
posted @ 2022-01-23 23:15 hunter-w 阅读(48) 评论(0) 推荐(0) 编辑
摘要:1. SpringMVC自动配置概览 Spring Boot provides auto-configuration for Spring MVC that works well with most applications.(大多场景我们都无需自定义配置) The auto-configurati 阅读全文
posted @ 2022-01-12 23:17 hunter-w 阅读(60) 评论(0) 推荐(0) 编辑
摘要:1. 文件类型 1.1 properties 1.2 yaml 1.2.1 简介 YAML 是 "YAML Ain't Markup Language"(YAML 不是一种标记语言)的递归缩写。在开发的这种语言时,YAML 的意思其实是:"Yet Another Markup Language"(仍 阅读全文
posted @ 2022-01-09 17:35 hunter-w 阅读(33) 评论(0) 推荐(0) 编辑
摘要:1. 引导加载自动配置类 @SpringBootConfiguration @EnableAutoConfiguration @ComponentScan(excludeFilters = { @Filter(type = FilterType.CUSTOM, classes = TypeExclu 阅读全文
posted @ 2022-01-08 23:49 hunter-w 阅读(244) 评论(0) 推荐(0) 编辑
摘要:1. @Configuration Full模式与Lite模式 使用示例 /** * 1、配置类里面使用@Bean标注在方法上给容器注册组件,默认也是单实例的 * 2、配置类本身也是组件 * 3、proxyBeanMethods:代理bean的方法 * Full(proxyBeanMethods = 阅读全文
posted @ 2022-01-06 15:15 hunter-w 阅读(47) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示