package xtools.boot.db.mybatis.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * <p>Title : MyBatisConfig</p>
 * <p>Description : MyBatisConfig</p>
 * <p>DevelopTools : Idea_x64_v2026.1</p>
 * <p>DevelopSystem : macOS Sequoia 15.7.5</p>
 * <p>Company : org.xujun</p>
 *
 * @author : XuJun
 * @version : 5.0.0
 * @date : 2026/2/11 14:46
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "mybatis")
public class MyBatisConfig {

    /**
     * 是否开启MyBatis监控
     */
    private Boolean monitor = true;

    /**
     * 慢查询时间阈值
     */
    private Integer slowTime = 3000;
}
