MyBatis 源碼學習16——MyBatis與Spring整合(下)

四、Mapper動態代理對象註冊過程 Spring框架啓動時: 會掃描指定路徑下的Mapper接口,將Mapper接口轉換爲Spring中的BeanDefinition對象,並且beanClass屬性爲MapperFactoryBean, Spring框架在所有的Bean配置轉換爲BeanDefinition對象後,就會根據BeanDefinition對象的beanClass屬性創建Bean的實例
相關文章
相關標籤/搜索