org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration
时间: 2023-10-28 07:21:07 浏览: 250
org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration是一个自动配置类,它负责配置Mybatis的相关功能。在读取过程中,会加载这个自动配置类,并根据相关条件进行过滤。比如,根据org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration.ConditionalOnClass判断是否存在org.apache.ibatis.session.SqlSessionFactory和org.mybatis.spring.SqlSessionFactoryBean,以及根据org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration.ConditionalOnSingleCandidate判断是否存在javax.sql.DataSource来决定是否过滤掉这个自动配置类。这些条件之间是通过and关系进行判断的。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [springboot整合mybatis源码分析](https://blog.csdn.net/wbo112/article/details/118860351)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文