让spring管理bean的四种方法:
@Bean
api registerSingle
factorybean(mybatis所用)
methodfactory
mapperScan:spring扩展{importBeanDefinitionRegister}
参考文献:
mybatis官网:https://mybatis.org/spring/zh
让spring管理bean的四种方法:
@Bean
api registerSingle
factorybean(mybatis所用)
methodfactory
mapperScan:spring扩展{importBeanDefinitionRegister}
mybatis官网:https://mybatis.org/spring/zh