类 MapperLocationsAutoConfiguration
java.lang.Object
cn.iosd.starter.datasource.config.MapperLocationsAutoConfiguration
@Configuration
@AutoConfigureAfter(com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration.class)
@ConditionalOnProperty(name="simple.datasource.locations.enabled",
havingValue="true",
matchIfMissing=true)
public class MapperLocationsAutoConfiguration
extends Object
自动配置 MybatisPlus 的 mapper-locations 属性,通过实现 MapperLocationsProvider 接口获取配置值
- 作者:
- ok1996
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明com.baomidou.mybatisplus.autoconfigure.MybatisPlusPropertiesCustomizer配置 MybatisPlusPropertiesCustomizer 的 Bean 自定义设置 MybatisPlusPropertiesCustomizer 的 setMapperLocations 方法, 将 MapperLocationsProvider 实现类的 mapper-locations 值传入 MybatisPlusProperties 中
-
构造器详细资料
-
MapperLocationsAutoConfiguration
public MapperLocationsAutoConfiguration()
-
-
方法详细资料
-
mybatisPlusPropertiesCustomizer
@Bean public com.baomidou.mybatisplus.autoconfigure.MybatisPlusPropertiesCustomizer mybatisPlusPropertiesCustomizer()配置 MybatisPlusPropertiesCustomizer 的 Bean 自定义设置 MybatisPlusPropertiesCustomizer 的 setMapperLocations 方法, 将 MapperLocationsProvider 实现类的 mapper-locations 值传入 MybatisPlusProperties 中- 返回:
- 返回 MybatisPlusPropertiesCustomizer 的 Bean
-