摘要:
1、mybatis-starter作用 自动检测工程中的DataSource 创建并注册SqlSessionFactory实例 创建并注册SqlSessionTemplate实例 自动扫描mappers 2、mybatis-starter使用 1) 引入mybatis-spring-boot-sta 阅读全文
posted @ 2020-03-08 21:45 work hard work smart 阅读(3777) 评论(0) 推荐(0)
|
|||
|
摘要:
1、mybatis-starter作用 自动检测工程中的DataSource 创建并注册SqlSessionFactory实例 创建并注册SqlSessionTemplate实例 自动扫描mappers 2、mybatis-starter使用 1) 引入mybatis-spring-boot-sta 阅读全文
posted @ 2020-03-08 21:45 work hard work smart 阅读(3777) 评论(0) 推荐(0)
摘要:
Spring Boot starter原理 一、starter自动配置类导入 启动类上@SpringBootApplication -> 引入AutoConfigurationImportSelector -> ConfigurationClassParser 中处理 -> 获取spring.fac 阅读全文
posted @ 2020-03-08 20:32 work hard work smart 阅读(1224) 评论(0) 推荐(0)
摘要:
1、starter介绍 简介: 可插拔插件 与jar包区别: starter能实现自动配置 作用: 大幅提高开发效率 2、常用的starter 名称 描述 spring-boot-starter-thymeleaf 使MVC Web applications 支持Thymeleaf spring-b 阅读全文
posted @ 2020-03-08 16:32 work hard work smart 阅读(457) 评论(0) 推荐(0)
摘要:
1、conditional注解介绍 含义: 基于条件的注解 作用: 根据是否满足某一个特定条件来决定是否创建某个特定的bean 意义: Springboot实现自动配置的关键基础能力 2、常见conditional注解 @ConditionalOnBean 框架中存在某个Bean时生效 @Condi 阅读全文
posted @ 2020-03-08 15:06 work hard work smart 阅读(349) 评论(0) 推荐(0) |
|||