Springboot中全局myBaits插件配置类基本信息 类名: DataSourceConfig 包路径: com.mdgyl.hussar.sourcing.config 注解: 使用了 @Configuration,表明这是一个Spring配置类 主要功能 1. 数据源配置 通过 @Resource 注入了外部配置的 DataSource 数据源 在 SqlSessionFactoryBeanCustomizer 中将数据源设置到 customizeFactoryBean 上 2. 自定义拦截器配置 注入了两个自定义拦截器: MybatisUp