MyBatis-Spring 配置项
@MapperScan
| property | 作用 | 默认值 | ||
|---|---|---|---|---|
|
同basePackages |
|||
|
扫描MyBatis接口的基本程序包 (字符串数组)。
|
|||
|
扫描指定的每个类所在的包下面的所有被 |
|||
|
||||
|
||||
|
||||
|
多数据源配置
|
|||
|
多数据源配置
|
|||
|
||||
|
是否启用映射器Bean的延迟初始化。 |
|||
|
null org.mybatis.spring.annotation.MapperScannerRegistrar#registerBeanDefinitions()
|