com.mybatisflex.spring.boot.MyBatisFlexCustomizer Maven / Gradle / Ivy
/*
* Copyright (c) 2022-2025, Mybatis-Flex ([email protected]).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.mybatisflex.spring.boot;
import com.mybatisflex.core.FlexGlobalConfig;
/**
*
MyBatis-Flex 配置。
*
*
一般可以用于去初始化:
*
*
* - FlexGlobalConfig 的全局配置
*
- 自定义主键生成器
*
- 多租户配置
*
- 动态表名配置
*
- 逻辑删除处理器配置
*
- 自定义脱敏规则
*
- SQL 审计配置
*
- SQL 打印配置
*
- 数据源解密器配置
*
- 自定义数据方言配置
*
- ...
*
*/
public interface MyBatisFlexCustomizer {
/**
* 自定义 MyBatis-Flex 配置。
*
* @param globalConfig 全局配置
*/
void customize(FlexGlobalConfig globalConfig);
}